void (final @NotNull ProgressIndicator indicator) { for (int j = 0; j < 10000; j++) { TimeoutUtil.sleep(1); indicator.setText("foo " + j); if (finalI % 10 == 0) { indicator.setText2(j + " foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo"); } } }