void (final String name, final boolean state) { Collection<String> activeActions = collectActiveActions(); if (state) { activeActions.add(name); } else { activeActions.remove(name); } myState.ACTIVE_ACTIONS = toString(activeActions); }