code: public static <T> T runInVm(PrivilegedAction<T> action) {
          checkPermission(PERFORM_IN_VM_CALL);
  
          if (action == null) return null;
          Boolean originalValue = IN_VM_CALL.get();
  
          try {
              IN_VM_CALL.set(Boolean.TRUE);
              return action.run();
          } finally {
              IN_VM_CALL.set(originalValue);
          }
      }
docs: Run an action as an in-vm action.
  
  @param action the action to run
  @param <T> the action return type
  @return the action result (may be {@code null})