EJB method hierarchy shouldn't affect completion statistics (IDEA-117673)

This commit is contained in:
peter
2014-01-27 19:06:41 +01:00
parent be30e67256
commit 445aa37d19
3 changed files with 10 additions and 3 deletions
@@ -14,6 +14,10 @@ import java.util.Set;
public class MethodDeepestSuperSearcher implements QueryExecutor<PsiMethod, PsiMethod> {
@Override
public boolean execute(@NotNull PsiMethod method, @NotNull Processor<PsiMethod> consumer) {
return processDeepestSuperMethods(method, consumer);
}
public static boolean processDeepestSuperMethods(PsiMethod method, Processor<PsiMethod> consumer) {
final Set<PsiMethod> methods = new THashSet<PsiMethod>();
methods.add(method);
return findDeepestSuperOrSelfSignature(method, methods, null, consumer);