boolean (Path path, Path oldConfig, Path newConfig, Path oldPluginsDir, @Nullable ConfigImportSettings settings) { if (ProjectManagerEx.Companion.isChildProcessPath(path)) return true; if (oldConfig.equals(path.getParent())) { Path fileName = path.getFileName(); return shouldSkipFileDuringImport(path, settings) || Files.exists(newConfig.resolve(fileName)) || path.startsWith(oldPluginsDir); } if (settings != null && settings.shouldSkipPath(path)) { return true; // this check needs to repeat even for non-root paths } return false; }