boolean (final PsiMethod method) { final AbstractQualifiedReferenceResolvingProcessor processor = new AbstractQualifiedReferenceResolvingProcessor() { @Override protected void process(final PsiElement element) { if (getManager().areElementsEquivalent(element, method) && isAccessible(element)) { setFound(); } } }; processUnqualifiedVariants(processor); return processor.isFound(); }