void (@NotNull Logger log, @NotNull String changedIndicesLogMessage, @NotNull String fullyBuiltIndicesLogMessage) { String changedIndices = changedIndices(); if (!changedIndices.isEmpty()) { log.info(changedIndicesLogMessage + changedIndices); } String fullyBuiltIndices = initiallyBuiltIndices(); if (!fullyBuiltIndices.isEmpty()) { log.info(fullyBuiltIndicesLogMessage + fullyBuiltIndices); } }