Component ( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus ) { @NlsSafe String tokenValue = value != null ? ((KtModifierKeywordToken) value).getValue() : null; return super.getListCellRendererComponent(list, tokenValue, index, isSelected, cellHasFocus); }