ModCommand (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { PsiElement element = descriptor.getStartElement(); return ModCommand.psiUpdate(element, (e, updater) -> removeFromCode(e)).andThen(removeExternal(element)); }