public @NotNull @Nls String getDisplayName() {
    return switch (myType) {
      case CUSTOM -> myScope.getDisplayName();
      case MODULE -> AnalysisBundle.message("scope.option.module", pathToName(myModule.getModuleFilePath()));
      case MODULES -> {
        String modules = StringUtil.join(myModules, module -> pathToName(module.getModuleFilePath()), ", ");
        yield AnalysisBundle.message("scope.module.list", modules, myModules.size());
      }
      case PROJECT -> AnalysisBundle.message("scope.project", myProject.getName());
      case FILE -> AnalysisBundle.message("scope.file", displayProjectRelativePath((PsiFileSystemItem)myElement));
      case DIRECTORY -> AnalysisBundle.message("scope.directory", displayProjectRelativePath((PsiFileSystemItem)myElement));
      case VIRTUAL_FILES -> AnalysisBundle.message("scope.virtual.files");
      default -> "";
    };
  }
public @NotNull @Nls String getDisplayName()