public static void disableCommands(Set<String> disabledCmds){
  for (  CMD cmd : CMD.values()) {
    cmd.setEnabled(disabledCmds == null || !disabledCmds.contains(cmd.toString()));
  }
}

public static void disableCommands ( Set < String > disabledCmds ) { for ( CMD cmd : CMD . values ( ) ) { cmd . setEnabled ( disabledCmds == null || ! disabledCmds . contains ( cmd . toString ( ) ) ) ; } }
disable a set of elm commands elm commands from preference
