public static @Nullable VirtualFile getVirtualFile(@NotNull RootType rootType) {
    String path = ScratchFileService.getInstance().getRootPath(rootType);
    return LocalFileSystem.getInstance().findFileByPath(path);
  }
public static @Nullable VirtualFile getVirtualFile(@NotNull RootType rootType)