void (boolean full) { if (myHeavyAwareListener.isHeavy()) { LOG.debug("Indexing is postponed due to heavy activity"); myPostponedIndex.updateAndGet(oldFull -> { if (oldFull == null) return full; return oldFull || full; }); } else { doScheduleIndex(full); } }