docs: public static Optional<Method> getMethod(Class type, String methodName, Class... argTypes) {
          try {
              return Optional.of(type.getMethod(methodName, argTypes));
          } catch (NoSuchMethodException e) {
              return findMethod(type, methodName, argTypes);
          }
      }