public <T> Local<T> getThis(TypeId<T> type) {
    if (thisLocal == null) {
      throw new IllegalStateException("static methods cannot access 'this'");
    }
    return coerce(thisLocal, type);
  }
Returns the local for {@code this} of type {@code type}. It is an error to call {@code
getThis()} if this is a static method.
android/android_framework/dex-maker/src/main/java/com/android/dx/Code.java