logback-android/src/main/java/ch/qos/logback/core/joran/util/StringToObjectConverter.java
public static Method getValueOfMethod(Class<?> type) {
    try {
      return type.getMethod(CoreConstants.VALUE_OF, STING_CLASS_PARAMETER);
    } catch (NoSuchMethodException e) {
      return null;
    } catch (SecurityException e) {
      return null;
    }
  }
public static Method getValueOfMethod(Class<?> type) {
    try {
      return type.getMethod(CoreConstants.VALUE_OF, STING_CLASS_PARAMETER);
    } catch (NoSuchMethodException e) {
      return null;
    } catch (SecurityException e) {
      return null;
    }
  }
returned value may be null and in most cases it is null.