public boolean isMacroSet(String macro,Operator operator){
synchronized (LOCK) {
    if (macroMap.containsKey(macro) || PREDEFINED_OPERATOR_INDEPENDENT_MACROS.contains(macro)) {
      return true;
    }
  }
  return operator != null && PREDEFINED_OPERATOR_DEPENDENT_MACROS.contains(macro);
}

public boolean isMacroSet ( String macro , Operator operator ) { synchronized ( LOCK ) { if ( macroMap . containsKey ( macro ) || PREDEFINED_OPERATOR_INDEPENDENT_MACROS . contains ( macro ) ) { return true ; } } return operator != null && PREDEFINED_OPERATOR_DEPENDENT_MACROS . contains ( macro ) ; }
checks whether a provided macro was set .
