void (Project project, int n, final int maximum, final int problemsCounter, boolean updateWithAttention) { AppIcon icon = AppIcon.getInstance(); if (n < maximum || !updateWithAttention) { if (!updateWithAttention || icon.setProgress(project, TESTS, AppIconScheme.Progress.TESTS, (double)n / (double)maximum, problemsCounter == 0)) { if (problemsCounter > 0) { icon.setErrorBadge(project, String.valueOf(problemsCounter)); } } } else { if (icon.hideProgress(project, TESTS)) { if (problemsCounter > 0) { icon.setErrorBadge(project, String.valueOf(problemsCounter)); } else { icon.setOkBadge(project, true); } icon.requestAttention(project, false); } } }