void (@Nullable InputEvent inputEvent) { List<Object> selectedValues = getList().getSelectedValuesList(); ActionPopupStep step = ObjectUtils.tryCast(getListStep(), ActionPopupStep.class); if (step == null) return; boolean updateStep = false; for (Object value : selectedValues) { ActionItem item = ObjectUtils.tryCast(value, ActionItem.class); if (item != null && step.isSelectable(item) && item.getAction() instanceof Toggleable) { step.performAction(item.getAction(), inputEvent); updateStep = true; } } if (updateStep) { step.updateStepItems(getList()); } }