mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
notnull
This commit is contained in:
@@ -25,6 +25,7 @@ import com.intellij.psi.PsiSubstitutor;
|
||||
import com.intellij.psi.util.PsiFormatUtil;
|
||||
import com.intellij.ui.*;
|
||||
import com.intellij.ui.components.JBList;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -51,7 +52,7 @@ public class MethodListDlg extends DialogWrapper {
|
||||
createList(psiClass.getAllMethods(), filter);
|
||||
myWholePanel.add(ScrollPaneFactory.createScrollPane(myList));
|
||||
myList.setCellRenderer(new ColoredListCellRenderer() {
|
||||
protected void customizeCellRenderer(final JList list, final Object value, final int index, final boolean selected, final boolean hasFocus) {
|
||||
protected void customizeCellRenderer(@NotNull final JList list, final Object value, final int index, final boolean selected, final boolean hasFocus) {
|
||||
final PsiMethod psiMethod = (PsiMethod)value;
|
||||
append(PsiFormatUtil.formatMethod(psiMethod, PsiSubstitutor.EMPTY, PsiFormatUtil.SHOW_NAME, 0),
|
||||
StructureNodeRenderer.applyDeprecation(psiMethod, SimpleTextAttributes.REGULAR_ATTRIBUTES));
|
||||
|
||||
Reference in New Issue
Block a user