void (boolean successfully, @Nullable StatusMark mark) { synchronized (LOCK) { if (successfully && mark != null) { String message = ((MyStatus)mark).collectionStatusMessage(); if (message == null) { lastIndexedStatus = (MyStatus)mark; } else { LOG.error("Status of indexed iterators was not collected: " + message); } } currentlyCollectedStatus = null; } }