void (@NotNull final AnActionEvent e) { final Project project = e.getData(CommonDataKeys.PROJECT); if (project == null) return; PsiDocumentManager.getInstance(project).commitAllDocuments(); final PsiElement psiElement = e.getData(CommonDataKeys.PSI_ELEMENT); final PsiFile psiFile = e.getData(CommonDataKeys.PSI_FILE); final VirtualFile[] virtualFiles = ObjectUtils.notNull(e.getData(CommonDataKeys.VIRTUAL_FILE_ARRAY), VirtualFile.EMPTY_ARRAY); final GotoInspectionModel model = new GotoInspectionModel(project); showNavigationPopup(e, model, new GotoActionCallback<>() { @Override protected ChooseByNameFilter<Object> createFilter(@NotNull ChooseByNamePopup popup) { popup.setSearchInAnyPlace(true); return super.createFilter(popup); } @Override public void elementChosen(ChooseByNamePopup popup, final Object element) { ApplicationManager.getApplication().invokeLater( () -> runInspection(project, (((InspectionElement)element)).getToolWrapper().getShortName(), virtualFiles, psiElement, psiFile)); } }, false); }