private static void restart(@Nullable JComponent component) {
    if (component != null) {
      ExecutionEnvironment environment = ExecutionDataKeys.EXECUTION_ENVIRONMENT.getData(DataManager.getInstance().getDataContext(component));
      if (environment != null) {
        restart(environment);
      }
    }
  }
private static void restart(@Nullable JComponent component)