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