boolean (@NotNull PsiElement element) { if (element.getLanguage() == JavaLanguage.INSTANCE && element instanceof PsiMethod && !((PsiMethod)element).isConstructor()) { final PsiClass containingClass = ((PsiMethod)element).getContainingClass(); return containingClass != null && containingClass.findMethodsByName(((PsiMethod)element).getName(), false).length > 1; } return false; }