code: public static Class<?> classForNameOrNull(final String className) {
          try {
              return Class.forName(className);
          } catch (final ReflectiveOperationException | LinkageError e) {
              return null;
          }
      }
docs: Call Class.forName(className), but return null if any exception is thrown.
  
  @param className
  The class name to load.
  @return The class of the requested name, or null if an exception was thrown while trying to load the class.