private static @NotNull @NlsContexts.DialogTitle String getTitle(@NotNull PsiFile file) {
    VirtualFile virtualFile = file.getOriginalFile().getVirtualFile();
    if (virtualFile == null) {
      return CodeStyleBundle.message("reformat.progress.common.text");
    }
    else {
      return CodeStyleBundle.message("reformat.progress.file.with.known.name.text", virtualFile.getName());
    }
  }
private static @NotNull @NlsContexts.DialogTitle String getTitle(@NotNull PsiFile file)