void (@Nullable Object item) { if (item == null) return; if (!(item instanceof JpsVersionItem)) { throw new IllegalStateException(item + "is supposed to be JpsVersionItem"); } if (!((JpsVersionItem) item).myEnabled) { return; } super.setSelectedItem(item); }