code: public static boolean isDebugEnabled(JShell state, int flag) {
          if (debugMap == null) {
              return false;
          }
          Integer flags = debugMap.get(state);
          if (flags == null) {
              return false;
          }
          return (flags & flag) != 0;
      }
docs: Tests if any of the specified debug flags are enabled.
  
  @param state the JShell instance
  @param flag the {@code DBG_*} bits to check
  @return true if any of the flags are enabled