void (@NotNull PresentationData data) { PsiMethod method = getValue(); assert method != null; String name; try { name = PsiFormatUtil.formatMethod(method, PsiSubstitutor.EMPTY, PsiFormatUtilBase.SHOW_NAME | PsiFormatUtilBase.SHOW_TYPE | PsiFormatUtilBase.TYPE_AFTER | PsiFormatUtilBase.SHOW_PARAMETERS, PsiFormatUtilBase.SHOW_TYPE); } catch (IndexNotReadyException e) { name = method.getName(); } int c = name.indexOf('\n'); if (c > -1) { name = name.substring(0, c - 1); } data.setPresentableText(name); }