String (PsiElement element, final boolean preferShort) { final JsonSchemaService jsonSchemaService = JsonSchemaService.Impl.get(element.getProject()); PsiFile containingFile = element.getContainingFile(); if (containingFile == null) return null; JsonSchemaObject schemaObject = jsonSchemaService.getSchemaObject(containingFile); if (schemaObject == null) return null; return JsonSchemaDocumentationProvider.generateDoc(element, schemaObject, preferShort, null); }