code: public static Modifiers getClassModifiers(Class<?> type) {
          try {
              return (Modifiers)getVariable(type, BSHCLASSMODIFIERS.toString()).getValue();
          } catch (Exception e) {
              return new Modifiers(Modifiers.CLASS);
          }
      }
docs: /*
  Get class modifiers from static variable BSHCLASSMODIFIERS