void (@NotNull final JList<? extends PsiMethod> list, @NotNull final PsiMethod psiMethod, final int index, final boolean selected, final boolean hasFocus) { append(PsiFormatUtil.formatMethod(psiMethod, PsiSubstitutor.EMPTY, PsiFormatUtilBase.SHOW_NAME, 0), StructureNodeRenderer.applyDeprecation(psiMethod, SimpleTextAttributes.REGULAR_ATTRIBUTES)); final PsiClass containingClass = psiMethod.getContainingClass(); if (containingClass == null) { return; } if (!psiClass.equals(containingClass)) { append(" (" + containingClass.getQualifiedName() + ")", StructureNodeRenderer.applyDeprecation(containingClass, SimpleTextAttributes.GRAY_ATTRIBUTES)); } }