@Override
    public @NotNull Icon patchIcon(@NotNull Icon icon, @NotNull VirtualFile file, int flags, @Nullable Project project) {
      if (project == null) return icon;
      RootType rootType = ScratchFileService.getInstance().getRootType(file);
      if (rootType == null) return icon;
      return rootType.patchIcon(icon, file, flags, project);
    }
@Override
    public @NotNull Icon patchIcon(@NotNull Icon icon, @NotNull VirtualFile file, int flags, @Nullable Project project)