resolve performance: static import shadowing checks perform all conflicts check on each add (IDEA-83594)

This commit is contained in:
anna
2012-03-28 15:38:46 +02:00
parent 3ac880a12c
commit dccf7bc5ef
@@ -79,7 +79,7 @@ public class MethodCandidatesProcessor extends MethodsProcessor{
protected boolean isShadowed(final PsiMethod candidate) {
if (myCurrentFileContext instanceof PsiImportStaticStatement) {
for (JavaResolveResult result : getResult()) {
for (JavaResolveResult result : getResults()) {
if (result.getElement() != candidate &&
result.isAccessible() &&
!(result.getCurrentFileResolveScope() instanceof PsiImportStaticStatement)) return true;