docs: public static <E> E checkNotInstanceOf(Class type, E object, String errorMessage) {
          isNotNull(type, "type");
          if (type.isInstance(object)) {
              throw new IllegalArgumentException(errorMessage);
          }
          return object;
      }