boolean (@NotNull VirtualFile file, @Nullable Project project) { return project == null || project.isDefault() || EP.findFirstSafe(project, provider -> !provider.isPotentiallyWritable(file)) == null; }