docs: @Internal
      public static Method getRequiredInternalMethod(Class type, String name, Class... argumentTypes) {
          try {
              return type.getDeclaredMethod(name, argumentTypes);
          } catch (NoSuchMethodException e) {
              return findMethod(type, name, argumentTypes)
                  .orElseThrow(() -> newNoSuchMethodInternalError(type, name, argumentTypes));
          }
      }