[search] add braces (IJ-CR-101458)

GitOrigin-RevId: 4e410005cdf9a1f42dbf4d7d1011a09e2bed1325
This commit is contained in:
Bas Leijdekkers
2023-01-23 12:56:48 +01:00
committed by intellij-monorepo-bot
parent 24881b3a2e
commit 3934568cf3

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.usages;
import com.intellij.injected.editor.DocumentWindow;
@@ -282,8 +282,12 @@ public final class ChunkExtractor {
}
private static @Nullable UsageType deriveUsageTypeFromHighlighting(@NotNull TextAttributesKey @NotNull [] tokenAttributeKeys) {
if (isHighlightedAsString(tokenAttributeKeys)) return UsageType.LITERAL_USAGE;
if (isHighlightedAsComment(tokenAttributeKeys)) return UsageType.COMMENT_USAGE;
if (isHighlightedAsString(tokenAttributeKeys)) {
return UsageType.LITERAL_USAGE;
}
if (isHighlightedAsComment(tokenAttributeKeys)) {
return UsageType.COMMENT_USAGE;
}
return null;
}