code: @SuppressWarnings("unchecked")
      public Method findAdaptMethod(Class from, Class to) {
          Method[] methods = mAdaptMethods;
          List<Method> candidates = new ArrayList<Method>(methods.length);
          for (int i=methods.length; --i>=0; ) {
              Method method = methods[i];
              if (to.isAssignableFrom(method.getReturnType()) &&
                  method.getParameterTypes()[0].isAssignableFrom(from)) {
                  candidates.add(method);
              }
          }
          reduceCandidates(candidates, to);
          if (candidates.size() == 0) {
              return null;
          }
          return candidates.get(0);
      }
docs: Returns an adapt method that supports the given conversion, or null if
  none.