private static void clearAndReload(@NotNull VirtualFile virtualFileOrDir, @NotNull Project project) {
    virtualFileOrDir.setCharset(null);
    reload(virtualFileOrDir, project, (FileDocumentManagerImpl)FileDocumentManager.getInstance());
  }
private static void clearAndReload(@NotNull VirtualFile virtualFileOrDir, @NotNull Project project)