String (@NotNull PsiNamedElement element) { if (element instanceof PsiMethod) { return formatMethod((PsiMethod)element, PsiSubstitutor.EMPTY, SHOW_NAME, 0); } else if (element instanceof PsiVariable) { return formatVariable((PsiVariable)element, SHOW_NAME, PsiSubstitutor.EMPTY); } else if (element instanceof PsiClass) { return formatClass((PsiClass)element, SHOW_NAME); } return element.getName(); }