docs: public static <T> Optional<Constructor<T>> findConstructor(Class<T> type, Class... argTypes) {
          try {
              return Optional.of(type.getDeclaredConstructor(argTypes));
          } catch (NoSuchMethodException e) {
              return Optional.empty();
          }
      }