mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
disable on demand static imports for trivial cases
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ public class AddOnDemandStaticImportAction extends PsiElementBaseIntentionAction
|
||||
return null;
|
||||
}
|
||||
PsiJavaCodeReferenceElement refExpr = (PsiJavaCodeReferenceElement)element.getParent();
|
||||
if (refExpr.getParent() instanceof PsiJavaCodeReferenceElement &&
|
||||
if (!(refExpr.getParent() instanceof PsiJavaCodeReferenceElement) ||
|
||||
isParameterizedReference((PsiJavaCodeReferenceElement)refExpr.getParent())) return null;
|
||||
|
||||
PsiElement resolved = refExpr.resolve();
|
||||
|
||||
Reference in New Issue
Block a user