code: private static TypeMirror paramAsMemberOf(
        Types types, DeclaredType type, TypeParameterElement param) {
      TypeMirror resolved = paramAsMemberOfImpl(types, type, param);
      checkState(resolved != null, "Could not resolve parameter: " + param);
      return resolved;
    }
docs: A custom implementation for getting the resolved value of a {@link TypeParameterElement}
  from a {@link DeclaredType}.
  
  Usually this can be resolved using {@link Types#asMemberOf(DeclaredType, Element)}, but the
  Jack compiler implementation currently does not work with {@link TypeParameterElement}s.
  See https://code.google.com/p/android/issues/detail?id=231164.