@Override
    public @Nullable String getEditorTabTitle(@NotNull Project project, @NotNull VirtualFile file) {
      RootType rootType = ScratchFileService.getInstance().getRootType(file);
      if (rootType == null) return null;
      return rootType.substituteName(project, file);
    }
@Override
    public @Nullable String getEditorTabTitle(@NotNull Project project, @NotNull VirtualFile file)