code: public static boolean allowInstance(Settings settings, Object object) {
  
          Preconditions.checkNotNull(object, "Can not check runtime permissions on a null instance!");
  
          if (object instanceof Method) {
              return allowMethod(settings, (Method) object);
          }
  
          return allowClass(settings, object.getClass());
      }
docs: Determines if this object may be used in the current runtime environment.
  Fathom settings are considered as well as runtime modes.
  
  @param settings
  @param object
  @return true if the object may be used