private static boolean isFileSuitable(@NotNull PsiFile file) {
    VirtualFile virtualFile = file.getVirtualFile();
    return file.isWritable() &&
           file.isPhysical() &&
           virtualFile != null && !(virtualFile instanceof LightVirtualFile);
  }
private static boolean isFileSuitable(@NotNull PsiFile file)