private static @Nullable @NlsSafe String appendNameTypeAndApi(@NotNull JsonPointerPosition position,
                                                                @NotNull String apiInfo,
                                                                @NotNull List<JsonSchemaType> possibleTypes,
                                                                @Nullable String htmlDescription,
                                                                boolean deprecated,
                                                                boolean preferShort) {
    if (position.size() == 0) return htmlDescription;

    String name = position.getLastName();
    if (name == null) return htmlDescription;

    String type = "";
    String schemaType = JsonSchemaObjectReadingUtils.getTypesDescription(false, possibleTypes);
    if (schemaType != null) {
      type = ": " + schemaType;
    }

    String deprecationComment = deprecated ? JsonBundle.message("schema.documentation.deprecated.postfix") : "";
    if (preferShort) {
      htmlDescription = "<b>" + name + "</b>" + type + apiInfo + deprecationComment + (htmlDescription == null ? "" : ("<br/>" + htmlDescription));
    }
    else {
      htmlDescription = DocumentationMarkup.DEFINITION_START + name + type + apiInfo + deprecationComment + DocumentationMarkup.DEFINITION_END +
                        (htmlDescription == null ? "" : (DocumentationMarkup.CONTENT_START + htmlDescription + DocumentationMarkup.CONTENT_END));
    }
    return htmlDescription;
  }
private static @Nullable @NlsSafe String appendNameTypeAndApi(@NotNull JsonPointerPosition position,
                                                                @NotNull String apiInfo,
                                                                @NotNull List<JsonSchemaType> possibleTypes,
                                                                @Nullable String htmlDescription,
                                                                boolean deprecated,
                                                                boolean preferShort)