String (IndexedFile indexedFile) { StringBuilder sb = new StringBuilder("Scheduling indexing of "); sb.append(indexedFile.getFileName()); sb.append(" by request of indexes: ["); if (unindexedStates != null) { for (Pair<FileIndexingState, ID<?, ?>> state : unindexedStates) { sb.append(state.second).append("->").append(state.first).append(","); } } sb.append("]. "); if (indexInfrastructureExtensionInvalidated) { sb.append("because extension invalidated; "); } if (hasAppliersOrRemovers()) { sb.append(getAppliersAndRemoversLogString(indexedFile)); } return sb.toString(); }