global inspections: minor optimization/simplification

GitOrigin-RevId: fa92e37580a7c2e358cf139656c3144d3d6c43b0
This commit is contained in:
Bas Leijdekkers
2022-03-01 17:45:09 +01:00
committed by intellij-monorepo-bot
parent c02ef01e30
commit 7f4d8f5164
2 changed files with 6 additions and 10 deletions

View File

@@ -399,10 +399,7 @@ public class RefJavaUtilImpl extends RefJavaUtil {
@Override
public boolean visitClassLiteralExpression(@NotNull UClassLiteralExpression node) {
final PsiType type = node.getType();
if (type instanceof PsiClassType) {
processClassReference(((PsiClassType)type).resolve(), false, node);
}
processClassReference(PsiUtil.resolveClassInClassTypeOnly(node.getType()), false, node);
return false;
}