ModCommand (@NotNull ActionContext context) { final PsiElement matchingElement = findMatchingElement(context); if (matchingElement == null) { return ModCommand.nop(); } return ModCommand.psiUpdate(matchingElement, (e, updater) -> processIntention(e, context, updater)); }