void () { if (isShowing() || ApplicationManager.getApplication().isUnitTestMode()) { if (myMlService != null) { myMlService.onSearchFinished( myProject, () -> myListModel.getFoundElementsInfo() ); } } closePopup(); }