void (@NotNull JList<? extends FileType> list, FileType value, int index, boolean selected, boolean hasFocus) { super.customize(list, value, index, selected, hasFocus); if (!myOpenInIdea.isSelected()) { setForeground(selected ? NamedColorUtil.getListSelectionForeground(hasFocus) : UIUtil.getComboBoxDisabledForeground()); setBackground(selected ? UIUtil.getListSelectionBackground(hasFocus) : UIUtil.getComboBoxDisabledBackground()); } }