boolean (T value) { Component component = myGetRenderer.get().getListCellRendererComponent(myProxyList, value, -1, false, false); return !((component instanceof ComboBox.SelectableItem selectableItem && !selectableItem.isSelectable()) || component instanceof JSeparator); }