List<LookupElementBuilder> (@NotNull YamlMetaType ownerClass, @NotNull PsiElement insertedScalar) { if (isByPattern()) { return Collections.emptyList(); } LookupElementBuilder lookup = LookupElementBuilder .create(new TypeFieldPair(ownerClass, this), getName()) .withTypeText(getMainType().getDisplayName(), true) .withIcon(getLookupIcon()) .withStrikeoutness(isDeprecated()); if (isRequired()) { lookup = lookup.bold(); } return Collections.singletonList(lookup); }