ModCommand (@NotNull ActionContext context) { if (myMode == InlineMode.HIGHLIGHT_CONFLICTS) { return ModCommand.highlight(myAllRefs.toArray(PsiElement.EMPTY_ARRAY)).andThen( myAllRefs.stream().findFirst().map(ModCommand::select).orElse(ModCommand.nop())); } return doInline(context, myPattern, myRefExpr, myMode); }