void (boolean updateWithAttention) { final int totalTestCount, doneTestCount; if (myTotalTestCount == 0) { totalTestCount = 2; doneTestCount = 1; } else { totalTestCount = myTotalTestCount; doneTestCount = myFinishedTestCount; } UIUtil.invokeLaterIfNeeded(() -> TestsUIUtil.showIconProgress(myProject, doneTestCount, totalTestCount, myFailedTestCount, updateWithAttention)); }