public static void prepareConfigDir(@NotNull Path currentConfigDir, @NotNull Path originalConfigDir) throws IOException {
    for (String fileName : FILE_NAMES) {
      Path sourceFile = originalConfigDir.resolve(fileName);
      Path targetFile = currentConfigDir.resolve(fileName);
      if (Files.exists(sourceFile)) {
        Files.createDirectories(targetFile.getParent());
        Files.copy(sourceFile, targetFile, StandardCopyOption.REPLACE_EXISTING);
      }
      else {
        Files.deleteIfExists(targetFile);
      }
    }
    DisabledPluginsState.Companion.invalidate();
  }
public static void prepareConfigDir(@NotNull Path currentConfigDir, @NotNull Path originalConfigDir)