boolean (@NotNull PsiElement element, @NotNull ResolveState state) { if (element instanceof PsiMethod && name.equals(((PsiMethod)element).getName()) && patternMethod.getParameterList().getParametersCount() == ((PsiMethod)element).getParameterList().getParametersCount() && isNotFromGroovyObject((PsiMethod)element)) { result.set(true); return false; } return true; }