private static boolean hasLocalVirtualFile(@NotNull PsiFile file) {
    VirtualFile virtualFile = file.getVirtualFile();
    return virtualFile != null && virtualFile.isInLocalFileSystem();
  }
private static boolean hasLocalVirtualFile(@NotNull PsiFile file)