@Override
  protected void checkDomElement(@NotNull DomElement element, @NotNull DomElementAnnotationHolder holder, @NotNull DomHighlightingHelper helper) {
    if (!isAllowed(holder)) return;

    if (element instanceof ActionOrGroup) {
      highlightActionOrGroup(holder, (ActionOrGroup)element);
    }
    else if (element instanceof Separator) {
      highlightSeparator(holder, (Separator)element);
    }
    else if (element instanceof OverrideText) {
      highlightOverrideText(holder, (OverrideText)element);
    }
    else if (element instanceof Extension) {
      highlightExtension(holder, (Extension)element);
    }
  }
@Override
  protected void checkDomElement(@NotNull DomElement element, @NotNull DomElementAnnotationHolder holder, @NotNull DomHighlightingHelper helper)