public static void loadRunConfigurationsFromDirectory(@NotNull JpsProject project,
                                                        @NotNull JpsComponentLoader componentLoader,
                                                        @NotNull Path dir,
                                                        @NotNull Path workspaceFile) {
    if (hasRunConfigurationSerializers()) {
      Runnable runConfTimingLog = TimingLog.startActivity("loading run configurations");
      for (Path configurationFile : listXmlFiles(dir.resolve("runConfigurations"))) {
        JpsRunConfigurationSerializer.loadRunConfigurations(project, componentLoader.loadRootElement(configurationFile));
      }
      JpsRunConfigurationSerializer.loadRunConfigurations(project, componentLoader.loadComponent(workspaceFile, "RunManager"));
      runConfTimingLog.run();
    }
  }
public static void loadRunConfigurationsFromDirectory(@NotNull JpsProject project,
                                                        @NotNull JpsComponentLoader componentLoader,
                                                        @NotNull Path dir,
                                                        @NotNull Path workspaceFile)