@Contract("null -> false")
  public static boolean isScratch(@Nullable VirtualFile file) {
    RootType rootType = RootType.forFile(file);
    return rootType != null && !rootType.isHidden();
  }
@Contract("null -> false")
  public static boolean isScratch(@Nullable VirtualFile file)