boolean (@NotNull final PsiElement element, final String stringValue, final PsiMethod resolveResult, final ConvertContext context) { if (super.isReferenceTo(element, stringValue, resolveResult, context)) return true; final Ref<Boolean> result = new Ref<>(Boolean.FALSE); processMethods(context, method -> { if (method.equals(element)) { result.set(Boolean.TRUE); return false; } return true; }, s -> s.findMethodsByName(stringValue, true)); return result.get(); }