code: public static <T> FromStringBasedConverter<T> getIfEligible(Class<T> clazz) {
          try {
              final Method method = clazz.getMethod(FROM_STRING, String.class);
              if (Modifier.isStatic(method.getModifiers())) {
                  if (!method.isAccessible()) {
                      method.setAccessible(true);
                  }
                  return new FromStringBasedConverter<>(clazz, method);
              } else {
                  // The from method is present but it must be static.
                  return null;
              }
          } catch (NoSuchMethodException e) { //NOSONAR
              // The class does not have the right method, return null.
              return null;
          }
  
      }
docs: Checks whether the given class can be used by the {@link org.wisdom.content.converters
  .FromStringBasedConverter} (i.e. has a static 'fromString' method taking a single String as argument). If so,
  creates a new instance of converter for this type.
  
  @param clazz the class
  @return a {@link org.wisdom.content.converters.FromStringBasedConverter} if the given class is eligible,
  {@literal null} otherwise.