void (@NotNull AnAction action, boolean isPrimary) { if (isPrimary) { if (mySecondaryActions != null) { mySecondaryActions.remove(action); } } else { if (mySecondaryActions == null) { mySecondaryActions = new HashSet<>(); } mySecondaryActions.add(action); } }