[java][highlight] IDEA-274531 errors shown incorrectly when a method name is the same as a nested class name

Remove redundant code

GitOrigin-RevId: 0e98bcdfde51ac4a2e97f639da7c7187e2aa0826
This commit is contained in:
Nikita Eshkeev
2021-07-28 19:43:28 +00:00
committed by intellij-monorepo-bot
parent 383d5a0aab
commit b0c3bd2060
@@ -3000,12 +3000,6 @@ public final class HighlightUtil {
}
else {
description = JavaErrorBundle.message("cannot.resolve.symbol", refName.getText());
if (isCallToStaticMember(refParent)) {
final String text = JavaErrorBundle.message("cannot.resolve.symbol", refName.getText());
final HighlightInfo info = HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(ref).descriptionAndTooltip(text).create();
QuickFixAction.registerQuickFixAction(info, new RemoveNewKeywordFix(refParent));
return info;
}
}
HighlightInfo info =