@NotNull
  protected @NlsSafe String getProjectName(@NotNull String path) {
    File file = new File(path);
    return file.isDirectory() || file.getParentFile() == null ? file.getName() : file.getParentFile().getName();
  }
@NotNull
  protected @NlsSafe String getProjectName(@NotNull String path)