void () { if (tooManyUsagesStatus.get() == Status.WARNING_DIALOG_SHOWN) { long start = System.currentTimeMillis(); try { while (System.currentTimeMillis() < start + 2000) { if (waitWhileUserClick.await(10, TimeUnit.MILLISECONDS)) break; if (myIndicator.isCanceled()) break; } } catch (InterruptedException ignored) { } } }