code: public static <T> ConstructorBasedConverter<T> getIfEligible(Class<T> clazz) {
          try {
              final Constructor<T> constructor = clazz.getConstructor(String.class);
              if (! constructor.isAccessible()) {
                  constructor.setAccessible(true);
              }
              return new ConstructorBasedConverter<>(clazz, constructor);
          } catch (NoSuchMethodException e) { //NOSONAR
              // The class does not have the right constructor, return null.
              return null;
          }
  
      }
docs: Checks whether the given class can be used by the {@link org.wisdom.content.converters
  .ConstructorBasedConverter} (i.e. has a constructor 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.ConstructorBasedConverter} if the given class is eligible,
  {@literal null} otherwise.