String (@NotNull PsiMethod element) { final PsiNamedElement container = fetchContainer(element); String text = container instanceof PsiClass ? PsiClassRenderingInfo.INSTANCE.getPresentableText((PsiClass)container) : container.getName(); if (myShowMethodNames) { text += "." + PsiFormatUtil.formatMethod(element, PsiSubstitutor.EMPTY, myOptions, PsiFormatUtilBase.SHOW_TYPE); } return text; }