void (AddToGroup addToGroup, DomElementAnnotationHolder holder) { if (!DomUtil.hasXml(addToGroup.getRelativeToAction())) return; if (!DomUtil.hasXml(addToGroup.getAnchor())) { holder.createProblem(addToGroup, DevKitBundle.message("inspections.plugin.xml.anchor.must.have.relative-to-action"), new AddDomElementQuickFix<>(addToGroup.getAnchor())); return; } final Anchor value = addToGroup.getAnchor().getValue(); if (value == Anchor.after || value == Anchor.before) { return; } holder.createProblem( addToGroup.getAnchor(), DevKitBundle.message("inspections.plugin.xml.must.use.after.before.with.relative-to-action", Anchor.after, Anchor.before)); }