docs: public static MethodParameter forMethodOrConstructor(Object methodOrConstructor, int parameterIndex) {
          if (methodOrConstructor instanceof Method) {
              return new MethodParameter((Method) methodOrConstructor, parameterIndex);
          } else if (methodOrConstructor instanceof Constructor) {
              return new MethodParameter((Constructor<?>) methodOrConstructor, parameterIndex);
          } else {
              throw new IllegalArgumentException(
                      "Given object [" + methodOrConstructor + "] is neither a Method nor a Constructor");
          }
      }