code: protected <T> Class<T> resolveJavaClassFrom(String... args) {
      return Arrays.stream(nullSafeArray(args, String.class)).filter(ObjectUtils::isPresent).findFirst()
        .<Class<T>>map(ObjectUtils::loadClass).orElse(null);
    }
docs: Resolves the Java {@link Class} containing the {@literal main} method to the Java program to execute
  from the given array of {@link String arguments}.
  
  @param <T> {@link Class} type of the main Java program.
  @param args array of {@link String arguments} from which to extract the main Java {@link Class}
  of the Java program.
  @return the Java {@link Class} containing the {@literal main} method to the Java program.
  @see java.lang.Class