void (final double fraction) { if (fraction - lastFraction < 0.01d) return; lastFraction = fraction; UIUtil.invokeLaterIfNeeded( () -> AppIcon.getInstance().setProgress(myProject, "indexUpdate", AppIconScheme.Progress.INDEXING, fraction, true)); }