boolean (@NotNull XStackFrame toSelect) { //noinspection unchecked if (!Objects.equals(getSelectedValue(), toSelect) && getModel().contains(toSelect)) { setSelectedValue(toSelect, true); return true; } return false; }