boolean (@NotNull PsiFile file) { CachedValue<JsonSchemaObject> data = CompletionUtil.getOriginalOrSelf(file).getUserData(OBJECT_FOR_FILE_KEY); if (data == null) return false; Getter<JsonSchemaObject> cachedValueGetter = data.getUpToDateOrNull(); if (cachedValueGetter == null) return false; JsonSchemaObject upToDateCachedValueOrNull = cachedValueGetter.get(); return upToDateCachedValueOrNull != null && upToDateCachedValueOrNull != JsonSchemaObject.NULL_OBJ; }