void (@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) { final PsiElement position = parameters.getPosition(); if (!hasHtmlAttributesCompletion(position)) { return; } final XmlAttributeValue attributeValue = PsiTreeUtil.getParentOfType(position, XmlAttributeValue.class, false); if (attributeValue != null && attributeValue.getParent() instanceof XmlAttribute) { for (String element : addSpecificCompletions((XmlAttribute)attributeValue.getParent())) { result.addElement(LookupElementBuilder.create(element)); } } }