void () { final long now = System.nanoTime(); if (now - myLastProgressUpdatingTime > TimeUnit.MILLISECONDS.toNanos(FILTERING_PROGRESS_UPDATING_MIN_DELAY_MILLIS)) { ApplicationManager.getApplication().invokeLater(() -> updateIndicator()); myLastProgressUpdatingTime = now; } }