boolean (@NotNull VirtualFile file) { if (myProject.isDisposed()) return false; JsonSchemaService service = JsonSchemaService.Impl.get(myProject); if (!service.isApplicableToFile(file)) return false; JsonSchemaVersion schemaVersion = service.getSchemaVersion(file); if (schemaVersion == null) return false; return switch (schemaVersion) { case SCHEMA_4 -> isSchemaV4(); case SCHEMA_6 -> isSchemaV6(); case SCHEMA_7 -> isSchemaV7(); }; }