void () { DebugUtil.sleep(5); ProgressManager.getInstance().runProcessWithProgressAsynchronously(new Task.Backgroundable(null, "lagging") { @Override public void run(@NotNull ProgressIndicator indicator) { DebugUtil.sleep(1); } }, new EmptyProgressIndicator()); if (myLagging) { myAlarm.addRequest(this, 1); } }