void (final @NotNull AnActionEvent e) { final NavigatableMessageElement messageElement = (NavigatableMessageElement)getSelectedErrorTreeElement(); final String[] text = messageElement.getText(); final String id = text[0].substring(1, text[0].indexOf("]")); final SuppressFix suppressInspectionFix = getSuppressAction(id); final Project project = e.getProject(); assert project != null; final OpenFileDescriptor navigatable = (OpenFileDescriptor)messageElement.getNavigatable(); final PsiFile file = PsiManager.getInstance(project).findFile(navigatable.getFile()); assert file != null; CommandProcessor.getInstance().executeCommand(project, () -> ApplicationManager.getApplication().runWriteAction(() -> { try { suppressInspectionFix.invoke(project, file.findElementAt(navigatable.getOffset())); } catch (IncorrectOperationException e1) { LOG.error(e1); } }), suppressInspectionFix.getText(), null); }