docs: public static <T> T createInstance(Class<T> type) {
      String errorMessage = "Unable to create an instance of " + type
              + ". Please make sure that if it's a nested class, is marked 'static'. "
              + "It should have a no-argument constructor.";
  
      try {
        Constructor<T> defaultConstructor = type.getDeclaredConstructor();
  
        if (defaultConstructor == null) {
          throw new FacebookJsonMappingException("Unable to find a default constructor for " + type);
        }
  
        // Allows protected, private, and package-private constructors to be
        // invoked
        defaultConstructor.setAccessible(true);
        return defaultConstructor.newInstance();
      } catch (Exception e) {
        throw new FacebookJsonMappingException(errorMessage, e);
      }
    }