code: private static IJavaType findTypeFromJre(Class c) {
      IJavaType type = (IJavaType) TypeSystem.get(c, TypeSystem.getExecutionEnvironment().getJreModule());
      IExecutionEnvironment execEnv = type.getTypeLoader().getModule().getExecutionEnvironment();
      if (execEnv.getProject().isDisposed()) {
        throw new IllegalStateException("Whoops.... the project associated with type, " + type.getName() + ", is stale. ExecEnv: " + execEnv.getProject());
      }
      return type;
    }
docs: utilities