@NotNull
  private static PsiElementPattern.Capture<PsiElement> getCapture() {
    //TODO write a method for attribute value in XmlPatterns
    return psiElement().inside(
      XmlPatterns.xmlAttributeValue("order").inside(
        XmlPatterns.xmlTag().with(new PatternCondition<>("extension tag") {
          @Override
          public boolean accepts(@NotNull XmlTag tag, ProcessingContext context) {
            if (!PsiUtil.isPluginXmlPsiElement(tag)) {
              return false;
            }

            DomManager domManager = DomManager.getDomManager(tag.getProject());
            return domManager.getDomElement(tag) instanceof Extension;
          }
        })));
  }
@NotNull
  private static PsiElementPattern.Capture<PsiElement> getCapture()