int (@NotNull IndexId<?, ?> indexId) { if (indexId == IdIndex.NAME) { return 0; } else if (indexId == StubUpdatingIndex.INDEX_ID) { return 1; } else if (indexId == TrigramIndex.INDEX_ID) { return 2; } return AUX_WRITERS_NUMBER == 1 ? BASE_WRITERS_NUMBER : BASE_WRITERS_NUMBER + Math.abs(indexId.getName().hashCode()) % AUX_WRITERS_NUMBER; }