void (@NotNull ProgressIndicator indicator) { int count = ReadAction.compute(myDuplicatesCountSupplier::get); ApplicationManager.getApplication().invokeLater( () -> { if (count != 0) { showCount(UIUtil.getBalloonInformationIcon(), " " + JavaRefactoringBundle.message("refactoring.extract.method.dialog.duplicates.count", count), JBUI.Borders.empty(18, 0)); } else { showCount(null, "", null); } }, ModalityState.any()); }