code: public <T> Local<T> getThis(TypeId<T> type) {
          if (thisLocal == null) {
              throw new IllegalStateException("static methods cannot access 'this'");
          }
          return coerce(thisLocal, type);
      }
docs: Returns the local for {@code this} of type {@code type}. It is an error
  to call {@code getThis()} if this is a static method.