You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2025/01/14 08:02:45 UTC

(jackrabbit-oak) branch OAK-11387 created (now 3eacd3a9d5)

This is an automated email from the ASF dual-hosted git repository.

reschke pushed a change to branch OAK-11387
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


      at 3eacd3a9d5 OAK-11387: Extract ListUtils from CollectionUtils

This branch includes the following new commits:

     new 3eacd3a9d5 OAK-11387: Extract ListUtils from CollectionUtils

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(jackrabbit-oak) 01/01: OAK-11387: Extract ListUtils from CollectionUtils

Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch OAK-11387
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit 3eacd3a9d5a271c0b1ff07e12ae6fd566621a26b
Author: Julian Reschke <re...@apache.org>
AuthorDate: Tue Jan 14 09:02:27 2025 +0100

    OAK-11387: Extract ListUtils from CollectionUtils
---
 .../external/impl/DynamicGroupsTest.java           |   4 +-
 .../impl/principal/DynamicGroupValidatorTest.java  |   8 +-
 .../ExternalGroupPrincipalProviderTest.java        |   3 +-
 .../PrincipalBasedAccessControlManagerTest.java    |   6 +-
 .../jackrabbit/oak/benchmark/HybridIndexTest.java  |   4 +-
 .../jackrabbit/oak/blob/cloud/s3/S3Backend.java    |   3 +-
 .../oak/plugins/blob/datastore/BlobIdTracker.java  |   4 +-
 .../datastore/ActiveDeletionTrackerStoreTest.java  |   7 +-
 .../blob/datastore/DataStoreBlobStoreTest.java     |   3 +-
 .../oak/commons/collections/CollectionUtils.java   |  77 --------------
 .../oak/commons/collections/ListUtils.java         | 112 +++++++++++++++++++++
 .../commons/FileLineDifferenceIteratorTest.java    |   8 +-
 .../commons/collections/CollectionUtilsTest.java   |  75 --------------
 .../oak/commons/collections/ListUtilsTest.java     | 106 +++++++++++++++++++
 .../oak/commons/sort/StringSortTest.java           |   4 +-
 .../plugins/commit/AnnotatingConflictHandler.java  |   4 +-
 .../oak/plugins/cow/BranchNodeStore.java           |   6 +-
 .../index/aggregate/SimpleNodeAggregator.java      |   4 +-
 .../oak/plugins/index/inventory/IndexPrinter.java  |   4 +-
 .../oak/plugins/itemsave/ItemSaveValidator.java    |   4 +-
 .../oak/plugins/nodetype/TypeEditor.java           |   8 +-
 .../oak/plugins/nodetype/TypeRegistration.java     |   3 +-
 .../oak/plugins/observation/EventGenerator.java    |   6 +-
 .../observation/filter/GlobbingPathHelper.java     |   4 +-
 .../plugins/version/ReadWriteVersionManager.java   |   3 +-
 .../oak/plugins/version/VersionableState.java      |   4 +-
 .../security/authorization/accesscontrol/ACL.java  |   4 +-
 .../oak/security/user/PasswordHistory.java         |   4 +-
 .../plugins/index/IndexInfoServiceImplTest.java    |   4 +-
 .../plugins/index/IndexPathServiceImplTest.java    |   3 +-
 .../index/aggregate/SimpleNodeAggregatorTest.java  |  16 +--
 .../index/importer/IndexDefinitionUpdaterTest.java |   4 +-
 .../index/property/MultiPropertyOrTest.java        |   4 +-
 .../strategy/ContentMirrorStoreStrategyTest.java   |  10 +-
 .../plugins/migration/FilteringNodeStateTest.java  |   6 +-
 .../oak/plugins/tree/impl/ImmutableTreeTest.java   |   4 +-
 .../query/OrQueryOrderLimitWithoutIndexTest.java   |   4 +-
 .../jackrabbit/oak/query/UnionQueryTest.java       |  10 +-
 .../oak/security/user/PasswordHistoryTest.java     |   4 +-
 .../user/UserImporterMembershipIgnoreTest.java     |   9 +-
 .../security/user/query/UserQueryManagerTest.java  |   5 +-
 .../oak/composite/CompositeNodeStoreTest.java      |   6 +-
 .../blob/datastore/DataStoreTrackerGCTest.java     |   3 +-
 .../ActiveDeletedBlobCollectorFactory.java         |   4 +-
 .../index/lucene/directory/IndexRootDirectory.java |   4 +-
 .../lucene/directory/OakBufferedIndexFile.java     |   4 +-
 .../plugins/index/lucene/IndexStatisticsTest.java  |   4 +-
 .../oak/plugins/index/lucene/LuceneIndexTest.java  |   4 +-
 .../index/lucene/LucenePropertyIndexTest.java      |  12 +--
 .../directory/ActiveDeletedBlobCollectorTest.java  |  14 +--
 .../ActiveDeletedBlobSyncTrackerTest.java          |   6 +-
 .../lucene/directory/ChunkedOakDirectoryTest.java  |   4 +-
 .../directory/IndexConsistencyCheckerTest.java     |   4 +-
 .../index/lucene/property/BucketSwitcherTest.java  |  24 ++---
 .../property/HybridPropertyIndexLookupTest.java    |  10 +-
 .../property/HybridPropertyIndexStorageTest.java   |   4 +-
 .../lucene/property/PropertyIndexCleanerTest.java  |   4 +-
 .../lucene/property/UniqueIndexCleanerTest.java    |   6 +-
 .../index/lucene/util/TapeSamplingTest.java        |  10 +-
 .../document/flatfile/SimpleFlatFileUtil.java      |   4 +-
 .../document/flatfile/SimpleNodeStateHolder.java   |   4 +-
 .../document/flatfile/StateInBytesHolder.java      |   4 +-
 .../jackrabbit/oak/run/cli/OakHelpFormatter.java   |   5 +-
 .../flatfile/ChildNodeStateProviderTest.java       |  22 ++--
 .../flatfile/NodeStateEntryWriterTest.java         |  14 ++-
 .../index/indexer/document/flatfile/TestUtils.java |   4 +-
 .../AbstractSegmentTarExplorerBackend.java         |   4 +-
 .../jackrabbit/oak/explorer/NodeStoreTree.java     |   3 +-
 .../org/apache/jackrabbit/oak/index/ReindexIT.java |   4 +-
 .../oak/plugins/index/search/Aggregate.java        |   4 +-
 .../plugins/index/search/PropertyDefinition.java   |   4 +-
 .../oak/plugins/index/OrderByCommonTest.java       |  10 +-
 .../index/search/util/TapeSamplingTest.java        |  10 +-
 .../oak/segment/azure/AzureJournalFile.java        |   4 +-
 .../oak/segment/azure/tool/ToolUtils.java          |   4 +-
 .../oak/segment/azure/AzureJournalFileTest.java    |   6 +-
 .../oak/segment/DefaultSegmentWriter.java          |   4 +-
 .../jackrabbit/oak/segment/file/tar/TarFiles.java  |   4 +-
 .../apache/jackrabbit/oak/segment/tool/Diff.java   |   4 +-
 .../apache/jackrabbit/oak/segment/tool/Utils.java  |   4 +-
 .../oak/segment/SegmentBufferWriterTest.java       |  10 +-
 .../oak/segment/SegmentDataStoreBlobGCIT.java      |   3 +-
 .../oak/composite/InitialContentMigrator.java      |   4 +-
 .../jackrabbit/oak/plugins/document/Commit.java    |   4 +-
 .../oak/plugins/document/DocumentNodeStore.java    |   3 +-
 .../plugins/document/DocumentStoreException.java   |   5 +-
 .../jackrabbit/oak/plugins/document/Rollback.java  |   4 +-
 .../oak/plugins/document/bundlor/BundlorUtils.java |   4 +-
 .../oak/plugins/document/bundlor/Include.java      |   4 +-
 .../plugins/document/mongo/MongoDocumentStore.java |   7 +-
 .../oak/plugins/document/rdb/RDBBlobStore.java     |   4 +-
 .../oak/plugins/document/rdb/RDBDocumentStore.java |   7 +-
 .../plugins/document/rdb/RDBDocumentStoreJDBC.java |   3 +-
 .../document/BlobReferenceIteratorTest.java        |   4 +-
 .../plugins/document/DocumentNodeStoreTest.java    |  12 +--
 .../oak/plugins/document/DocumentSplitTest.java    |  24 ++---
 .../document/LastRevRecoveryRandomizedIT.java      |   4 +-
 .../oak/plugins/document/MongoBlobGCTest.java      |   3 +-
 .../oak/plugins/document/NodeDocumentTest.java     |  19 ++--
 .../plugins/document/SharedBlobStoreGCTest.java    |   3 +-
 .../oak/plugins/document/ValueMapTest.java         |   4 +-
 .../document/VersionGarbageCollectorIT.java        |  19 ++--
 .../document/bundlor/DocumentBundlingTest.java     |   4 +-
 .../document/mongo/AcquireRecoveryLockTest.java    |   4 +-
 .../document/persistentCache/AsyncQueueTest.java   |   4 +-
 .../apache/jackrabbit/oak/json/JsonSerializer.java |   4 +-
 .../oak/plugins/memory/MultiLongPropertyState.java |   4 +-
 .../oak/plugins/memory/MultiPropertyState.java     |   4 +-
 .../oak/plugins/memory/PropertyBuilder.java        |   4 +-
 .../oak/spi/commit/CompositeConflictHandler.java   |   4 +-
 .../jackrabbit/oak/spi/commit/MoveTracker.java     |   8 +-
 .../jackrabbit/oak/upgrade/PersistingDiff.java     |   4 +-
 .../oak/upgrade/RepositorySidegrade.java           |   4 +-
 .../upgrade/checkpoint/CheckpointRetriever.java    |   4 +-
 .../oak/upgrade/cli/MigrationFactory.java          |   4 +-
 .../jackrabbit/oak/upgrade/cli/OakUpgrade.java     |   4 +-
 116 files changed, 555 insertions(+), 477 deletions(-)

diff --git a/oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/DynamicGroupsTest.java b/oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/DynamicGroupsTest.java
index a6e57907d3..706d1420e9 100644
--- a/oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/DynamicGroupsTest.java
+++ b/oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/DynamicGroupsTest.java
@@ -23,7 +23,7 @@ import org.apache.jackrabbit.api.security.user.Group;
 import org.apache.jackrabbit.api.security.user.User;
 import org.apache.jackrabbit.api.security.user.UserManager;
 import org.apache.jackrabbit.oak.api.Tree;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalGroup;
 import org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentity;
 import org.apache.jackrabbit.oak.spi.security.authentication.external.ExternalIdentityProvider;
@@ -292,7 +292,7 @@ public class DynamicGroupsTest extends DynamicSyncContextTest {
         UserManager um = getUserManager(r);
         PrincipalManager pm = getPrincipalManager(r);
         
-        List<ExternalIdentityRef> declaredGroupRefs = CollectionUtils.toList(previouslySyncedUser.getDeclaredGroups());
+        List<ExternalIdentityRef> declaredGroupRefs = ListUtils.toList(previouslySyncedUser.getDeclaredGroups());
         assertTrue(declaredGroupRefs.size() > 1);
         
         String groupId = declaredGroupRefs.get(0).getId();
diff --git a/oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/principal/DynamicGroupValidatorTest.java b/oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/principal/DynamicGroupValidatorTest.java
index b780521f33..3c26c883e6 100644
--- a/oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/principal/DynamicGroupValidatorTest.java
+++ b/oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/principal/DynamicGroupValidatorTest.java
@@ -26,7 +26,7 @@ import org.apache.jackrabbit.oak.api.Root;
 import org.apache.jackrabbit.oak.api.Tree;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.memory.PropertyStates;
 import org.apache.jackrabbit.oak.plugins.tree.TreeUtil;
 import org.apache.jackrabbit.oak.spi.commit.CommitInfo;
@@ -268,7 +268,7 @@ public class DynamicGroupValidatorTest extends AbstractPrincipalTest {
 
         Tree groupTree = r.getTree(localGroup.getPath());
         Tree userTree = r.getTree(userManager.getAuthorizable(USER_ID).getPath());
-        List<String> members = CollectionUtils.toList(groupTree.getProperty(REP_MEMBERS).getValue(Type.STRINGS));
+        List<String> members = ListUtils.toList(groupTree.getProperty(REP_MEMBERS).getValue(Type.STRINGS));
         members.add(userTree.getProperty(JCR_UUID).getValue(Type.STRING));
         groupTree.setProperty(REP_MEMBERS, members, Type.WEAKREFERENCES);
         r.commit();
@@ -300,7 +300,7 @@ public class DynamicGroupValidatorTest extends AbstractPrincipalTest {
         r.commit();
         
         Tree groupTree = r.getTree(localGroup.getPath());
-        List<String> members = CollectionUtils.toList(groupTree.getProperty(REP_MEMBERS).getValue(Type.STRINGS));
+        List<String> members = ListUtils.toList(groupTree.getProperty(REP_MEMBERS).getValue(Type.STRINGS));
         members.remove(1);
         groupTree.setProperty(REP_MEMBERS, members, Type.WEAKREFERENCES);
         r.commit();
@@ -318,7 +318,7 @@ public class DynamicGroupValidatorTest extends AbstractPrincipalTest {
 
         Tree groupTree = r.getTree(localGroup.getPath());
         Tree userTree = r.getTree(userManager.getAuthorizable(USER_ID).getPath());
-        List<String> members = CollectionUtils.toList(groupTree.getProperty(REP_MEMBERS).getValue(Type.STRINGS));
+        List<String> members = ListUtils.toList(groupTree.getProperty(REP_MEMBERS).getValue(Type.STRINGS));
         members.add(userTree.getProperty(JCR_UUID).getValue(Type.STRING));
         groupTree.setProperty(REP_MEMBERS, members, Type.WEAKREFERENCES);
         try {
diff --git a/oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/principal/ExternalGroupPrincipalProviderTest.java b/oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/principal/ExternalGroupPrincipalProviderTest.java
index dce8bfb078..ac8da9d1de 100644
--- a/oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/principal/ExternalGroupPrincipalProviderTest.java
+++ b/oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/principal/ExternalGroupPrincipalProviderTest.java
@@ -28,6 +28,7 @@ import org.apache.jackrabbit.oak.api.Root;
 import org.apache.jackrabbit.oak.api.Tree;
 import org.apache.jackrabbit.oak.commons.PathUtils;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.collections.StreamUtils;
 import org.apache.jackrabbit.oak.namepath.NamePathMapper;
 import org.apache.jackrabbit.oak.plugins.tree.TreeAware;
@@ -586,7 +587,7 @@ public class ExternalGroupPrincipalProviderTest extends AbstractPrincipalTest {
                 return in.iterator();
             }
         };
-        List<Principal> out = CollectionUtils.toList(p.findPrincipals(null, false, PrincipalManager.SEARCH_TYPE_ALL, 0, -1));
+        List<Principal> out = ListUtils.toList(p.findPrincipals(null, false, PrincipalManager.SEARCH_TYPE_ALL, 0, -1));
         Collections.sort(in, Comparator.comparing(Principal::getName));
         assertEquals(in, out);
     }
diff --git a/oak-authorization-principalbased/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/principalbased/impl/PrincipalBasedAccessControlManagerTest.java b/oak-authorization-principalbased/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/principalbased/impl/PrincipalBasedAccessControlManagerTest.java
index 42d65a0499..83abc25a5c 100644
--- a/oak-authorization-principalbased/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/principalbased/impl/PrincipalBasedAccessControlManagerTest.java
+++ b/oak-authorization-principalbased/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/principalbased/impl/PrincipalBasedAccessControlManagerTest.java
@@ -23,7 +23,7 @@ import org.apache.jackrabbit.api.security.principal.ItemBasedPrincipal;
 import org.apache.jackrabbit.oak.api.Root;
 import org.apache.jackrabbit.oak.api.Tree;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.tree.TreeUtil;
 import org.apache.jackrabbit.oak.spi.nodetype.NodeTypeConstants;
 import org.apache.jackrabbit.oak.spi.security.authorization.AuthorizationConfiguration;
@@ -554,7 +554,7 @@ public class PrincipalBasedAccessControlManagerTest extends AbstractPrincipalBas
         Iterator<AccessControlPolicy> effective = acMgr.getEffectivePolicies(principals, new String[0]);
         AccessControlPolicy[] expected = acMgr.getEffectivePolicies(principals);
         
-        assertArrayEquals(expected, (CollectionUtils.toList(effective).toArray()));
+        assertArrayEquals(expected, (ListUtils.toList(effective).toArray()));
     }
 
     @Test
@@ -567,7 +567,7 @@ public class PrincipalBasedAccessControlManagerTest extends AbstractPrincipalBas
         String[] paths = readablePaths.stream().map(oakPath -> namePathMapper.getJcrPath(oakPath)).distinct().toArray(String[]::new);
         assertEquals(3, paths.length);
         
-        List<AccessControlPolicy> effective = CollectionUtils.toList(acMgr.getEffectivePolicies(Collections.singleton(validPrincipal), paths));
+        List<AccessControlPolicy> effective = ListUtils.toList(acMgr.getEffectivePolicies(Collections.singleton(validPrincipal), paths));
 
         assertEquals(1, effective.size());
         assertEquals(ReadPolicy.INSTANCE, effective.get(0));
diff --git a/oak-benchmarks-lucene/src/main/java/org/apache/jackrabbit/oak/benchmark/HybridIndexTest.java b/oak-benchmarks-lucene/src/main/java/org/apache/jackrabbit/oak/benchmark/HybridIndexTest.java
index 6bae6cbcf8..e0459b0f97 100644
--- a/oak-benchmarks-lucene/src/main/java/org/apache/jackrabbit/oak/benchmark/HybridIndexTest.java
+++ b/oak-benchmarks-lucene/src/main/java/org/apache/jackrabbit/oak/benchmark/HybridIndexTest.java
@@ -48,7 +48,7 @@ import org.apache.commons.io.FileUtils;
 import org.apache.jackrabbit.oak.Oak;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.api.jmx.IndexStatsMBean;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.fixture.JcrCreator;
 import org.apache.jackrabbit.oak.fixture.OakRepositoryFixture;
 import org.apache.jackrabbit.oak.fixture.RepositoryFixture;
@@ -512,7 +512,7 @@ public class HybridIndexTest extends AbstractTest<HybridIndexTest.TestContext> {
             if (nodetype.exists()) {
                 List<String> nodetypes = new ArrayList<>();
                 if (nodetype.hasProperty(DECLARING_NODE_TYPES)){
-                    nodetypes = CollectionUtils.toList(nodetype.getProperty(DECLARING_NODE_TYPES).getValue(Type.STRINGS));
+                    nodetypes = ListUtils.toList(nodetype.getProperty(DECLARING_NODE_TYPES).getValue(Type.STRINGS));
                 }
 
                 if (nodetypes.isEmpty()) {
diff --git a/oak-blob-cloud/src/main/java/org/apache/jackrabbit/oak/blob/cloud/s3/S3Backend.java b/oak-blob-cloud/src/main/java/org/apache/jackrabbit/oak/blob/cloud/s3/S3Backend.java
index cdb8934a85..fd649087e2 100644
--- a/oak-blob-cloud/src/main/java/org/apache/jackrabbit/oak/blob/cloud/s3/S3Backend.java
+++ b/oak-blob-cloud/src/main/java/org/apache/jackrabbit/oak/blob/cloud/s3/S3Backend.java
@@ -51,6 +51,7 @@ import org.apache.jackrabbit.core.data.DataStoreException;
 import org.apache.jackrabbit.core.data.util.NamedThreadFactory;
 import org.apache.jackrabbit.oak.commons.PropertiesUtil;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.blob.datastore.directaccess.DataRecordDownloadOptions;
 import org.apache.jackrabbit.oak.plugins.blob.datastore.directaccess.DataRecordUpload;
 import org.apache.jackrabbit.oak.plugins.blob.datastore.directaccess.DataRecordUploadException;
@@ -1125,7 +1126,7 @@ public class S3Backend extends AbstractSharedBackend {
                     return false;
                 }
 
-                List<S3ObjectSummary> listing = CollectionUtils.toList(
+                List<S3ObjectSummary> listing = ListUtils.toList(
                     filter(prevObjectListing.getObjectSummaries(),
                             input -> !input.getKey().startsWith(META_KEY_PREFIX)));
 
diff --git a/oak-blob-plugins/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/BlobIdTracker.java b/oak-blob-plugins/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/BlobIdTracker.java
index 185d6e16e2..788b2d476c 100644
--- a/oak-blob-plugins/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/BlobIdTracker.java
+++ b/oak-blob-plugins/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/BlobIdTracker.java
@@ -37,7 +37,7 @@ import java.util.function.Predicate;
 import org.apache.jackrabbit.guava.common.base.Stopwatch;
 import org.apache.jackrabbit.guava.common.io.Files;
 import org.apache.jackrabbit.core.data.DataRecord;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.concurrent.ExecutorCloser;
 import org.apache.jackrabbit.oak.commons.io.BurnOnCloseFileIterator;
 import org.apache.jackrabbit.oak.commons.io.FileLineDifferenceIterator;
@@ -268,7 +268,7 @@ public class BlobIdTracker implements Closeable, BlobTracker {
             Iterable<DataRecord> refRecords = datastore.getAllMetadataRecords(fileNamePrefix);
 
             // Download all the corresponding files for the records
-            List<File> refFiles = CollectionUtils.toList(transform(refRecords, input -> {
+            List<File> refFiles = ListUtils.toList(transform(refRecords, input -> {
                     InputStream inputStream = null;
                     try {
                         inputStream = input.getStream();
diff --git a/oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/ActiveDeletionTrackerStoreTest.java b/oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/ActiveDeletionTrackerStoreTest.java
index 93411fdf68..97ab978b13 100644
--- a/oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/ActiveDeletionTrackerStoreTest.java
+++ b/oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/ActiveDeletionTrackerStoreTest.java
@@ -32,6 +32,7 @@ import java.util.Set;
 import org.apache.jackrabbit.guava.common.base.Strings;
 import org.apache.jackrabbit.oak.commons.FileIOUtils;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.blob.SharedDataStore;
 import org.apache.jackrabbit.oak.plugins.blob.datastore.BlobIdTracker.ActiveDeletionTracker;
 import org.junit.After;
@@ -117,7 +118,7 @@ public class ActiveDeletionTrackerStoreTest {
         File toFilter = create(range(7, 10), folder);
         Iterator<String> filtered = tracker.filter(toFilter);
 
-        assertTrue("More elements after filtering", CollectionUtils.toList(filtered).isEmpty());
+        assertTrue("More elements after filtering", ListUtils.toList(filtered).isEmpty());
     }
 
     @Test
@@ -127,7 +128,7 @@ public class ActiveDeletionTrackerStoreTest {
         File toFilterFile = create(toFilter, folder);
         Iterator<String> filtered = tracker.filter(toFilterFile);
 
-        assertEquals("Incorrect elements after filtering", range(0, 4), CollectionUtils.toList(filtered));
+        assertEquals("Incorrect elements after filtering", range(0, 4), ListUtils.toList(filtered));
     }
 
     @Test
@@ -138,7 +139,7 @@ public class ActiveDeletionTrackerStoreTest {
         Iterator<String> filtered = tracker.filter(toFilterFile);
 
         assertEquals("Incorrect elements after filtering",
-            range(0, 4), CollectionUtils.toList(filtered));
+            range(0, 4), ListUtils.toList(filtered));
     }
 
     @Test
diff --git a/oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStoreTest.java b/oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStoreTest.java
index 028a88b650..b4f85836ef 100644
--- a/oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStoreTest.java
+++ b/oak-blob-plugins/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreBlobStoreTest.java
@@ -37,6 +37,7 @@ import org.apache.jackrabbit.core.data.DataRecord;
 import org.apache.jackrabbit.core.data.DataStore;
 import org.apache.jackrabbit.core.data.DataStoreException;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.blob.BlobStoreBlob;
 import org.apache.jackrabbit.oak.spi.blob.AbstractBlobStoreTest;
 import org.apache.jackrabbit.oak.spi.blob.BlobStoreInputStream;
@@ -169,7 +170,7 @@ public class DataStoreBlobStoreTest extends AbstractBlobStoreTest {
         DataIdentifier d20 = new DataIdentifier("d-20");
         DataIdentifier d30 = new DataIdentifier("d-30");
         List<DataIdentifier> dis = List.of(d10, d20, d30);
-        List<DataRecord> recs = CollectionUtils.toList(
+        List<DataRecord> recs = ListUtils.toList(
             Iterables.transform(dis, input -> new TimeDataRecord(input)));
         OakFileDataStore mockedDS = mock(OakFileDataStore.class);
         when(mockedDS.getAllRecords()).thenReturn(recs.iterator());
diff --git a/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/collections/CollectionUtils.java b/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/collections/CollectionUtils.java
index 67b47fbaed..f0b44ca2c3 100644
--- a/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/collections/CollectionUtils.java
+++ b/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/collections/CollectionUtils.java
@@ -19,7 +19,6 @@
 package org.apache.jackrabbit.oak.commons.collections;
 
 import java.util.ArrayDeque;
-import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
 import java.util.HashMap;
@@ -28,8 +27,6 @@ import java.util.IdentityHashMap;
 import java.util.Iterator;
 import java.util.LinkedHashMap;
 import java.util.LinkedHashSet;
-import java.util.LinkedList;
-import java.util.List;
 import java.util.Map;
 import java.util.Objects;
 import java.util.Properties;
@@ -38,7 +35,6 @@ import java.util.TreeSet;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.function.Predicate;
 import java.util.stream.Collectors;
-import java.util.stream.IntStream;
 import java.util.stream.Stream;
 
 import org.jetbrains.annotations.NotNull;
@@ -56,79 +52,6 @@ public class CollectionUtils {
         // no instances for you
     }
 
-    /**
-     * Convert an iterable to a list. The returning list is mutable and supports all optional operations.
-     * @param iterable the iterable to convert
-     * @return the list
-     * @param <T> the type of the elements
-     */
-    @NotNull
-    public static <T> List<T> toList(@NotNull final Iterable<? extends T> iterable) {
-        Objects.requireNonNull(iterable);
-        List<T> result = new ArrayList<>();
-        iterable.forEach(result::add);
-        return result;
-    }
-
-    /**
-     * Convert an iterable to a {@link java.util.LinkedList}. The returning LinkedList is mutable and supports all optional operations.
-     * @param iterable the iterator to convert
-     * @return the LinkedList
-     * @param <T> the type of the elements
-     */
-    @NotNull
-    public static <T> List<T> toLinkedList(final Iterable<T> iterable) {
-        Objects.requireNonNull(iterable);
-        List<T> result = new LinkedList<>();
-        iterable.forEach(result::add);
-        return result;
-    }
-
-    /**
-     * Convert an iterator to a list. The returning list is mutable and supports all optional operations.
-     * @param iterator the iterator to convert
-     * @return the list
-     * @param <T> the type of the elements
-     */
-    @NotNull
-    public static <T> List<T> toList(final Iterator<? extends T> iterator) {
-        Objects.requireNonNull(iterator);
-        List<T> result = new ArrayList<>();
-        iterator.forEachRemaining(result::add);
-        return result;
-    }
-
-    /**
-     * Split a list into partitions of a given size.
-     *
-     * @param list the list to partition
-     * @param n the size of partitions
-     * @return a list of partitions. The resulting partitions aren’t a view of the main List, so any changes happening to the main List won’t affect the partitions.
-     * @param <T> the type of the elements
-     */
-    @NotNull
-    public static <T> List<List<T>> partitionList(final List<T> list, final int n) {
-        Objects.requireNonNull(list);
-        return IntStream.range(0, list.size())
-                .filter(i -> i % n == 0)
-                .mapToObj(i -> list.subList(i, Math.min(i + n, list.size())))
-                .collect(Collectors.toList());
-    }
-
-    /**
-     * Returns a new list containing the elements of the specified list in reverse order.
-     *
-     * @param <T> the type of elements in the list
-     * @param l the list to be reversed, must not be null
-     * @return a new list containing the elements of the specified list in reverse order
-     * @throws NullPointerException if the list is null
-     */
-    @NotNull
-    public static <T> List<T> reverse(final List<T> l) {
-        Objects.requireNonNull(l);
-        return IntStream.range(0, l.size()).map(i -> l.size() - 1- i).mapToObj(l::get).collect(Collectors.toList());
-    }
-
     /**
      * Convert an iterable to a set. The returning set is mutable and supports all optional operations.
      * @param iterable the iterable to convert
diff --git a/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/collections/ListUtils.java b/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/collections/ListUtils.java
new file mode 100644
index 0000000000..dd7e3bab9e
--- /dev/null
+++ b/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/collections/ListUtils.java
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.jackrabbit.oak.commons.collections;
+
+import org.jetbrains.annotations.NotNull;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
+
+public class ListUtils {
+
+    private ListUtils() {
+        // no instances for you
+    }
+
+    /**
+     * Convert an iterable to a list. The returning list is mutable and supports all optional operations.
+     *
+     * @param iterable the iterable to convert
+     * @param <T> the type of the elements
+     * @return the list
+     */
+    @NotNull
+    public static <T> List<T> toList(@NotNull final Iterable<? extends T> iterable) {
+        Objects.requireNonNull(iterable);
+        List<T> result = new ArrayList<>();
+        iterable.forEach(result::add);
+        return result;
+    }
+
+    /**
+     * Convert an iterable to a {@link java.util.LinkedList}. The returning LinkedList is mutable and supports all optional operations.
+     *
+     * @param iterable the iterator to convert
+     * @param <T> the type of the elements
+     * @return the LinkedList
+     */
+    @NotNull
+    public static <T> List<T> toLinkedList(final Iterable<T> iterable) {
+        Objects.requireNonNull(iterable);
+        List<T> result = new LinkedList<>();
+        iterable.forEach(result::add);
+        return result;
+    }
+
+    /**
+     * Convert an iterator to a list. The returning list is mutable and supports all optional operations.
+     *
+     * @param iterator the iterator to convert
+     * @param <T> the type of the elements
+     * @return the list
+     */
+    @NotNull
+    public static <T> List<T> toList(final Iterator<? extends T> iterator) {
+        Objects.requireNonNull(iterator);
+        List<T> result = new ArrayList<>();
+        iterator.forEachRemaining(result::add);
+        return result;
+    }
+
+    /**
+     * Split a list into partitions of a given size.
+     *
+     * @param list the list to partition
+     * @param n the size of partitions
+     * @param <T> the type of the elements
+     * @return a list of partitions. The resulting partitions aren’t a view of the main List, so any changes happening to the main List won’t affect the partitions.
+     */
+    @NotNull
+    public static <T> List<List<T>> partitionList(final List<T> list, final int n) {
+        Objects.requireNonNull(list);
+        return IntStream.range(0, list.size())
+                .filter(i -> i % n == 0)
+                .mapToObj(i -> list.subList(i, Math.min(i + n, list.size())))
+                .collect(Collectors.toList());
+    }
+
+    /**
+     * Returns a new list containing the elements of the specified list in reverse order.
+     *
+     * @param <T> the type of elements in the list
+     * @param l the list to be reversed, must not be null
+     * @return a new list containing the elements of the specified list in reverse order
+     * @throws NullPointerException if the list is null
+     */
+    @NotNull
+    public static <T> List<T> reverse(final List<T> l) {
+        Objects.requireNonNull(l);
+        return IntStream.range(0, l.size()).map(i -> l.size() - 1 - i).mapToObj(l::get).collect(Collectors.toList());
+    }
+}
diff --git a/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/FileLineDifferenceIteratorTest.java b/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/FileLineDifferenceIteratorTest.java
index 1cb0ecf497..c09d39a6c2 100644
--- a/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/FileLineDifferenceIteratorTest.java
+++ b/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/FileLineDifferenceIteratorTest.java
@@ -37,7 +37,7 @@ import java.util.function.Function;
 import org.apache.commons.io.LineIterator;
 import org.apache.jackrabbit.guava.common.base.Splitter;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.io.FileLineDifferenceIterator;
 import org.jetbrains.annotations.Nullable;
 import org.junit.Test;
@@ -159,12 +159,12 @@ public class FileLineDifferenceIteratorTest {
 
     private static void assertReverseDiff(String marked, String all, List<String> diff) throws IOException {
         Iterator<String> itr = createItr(all, marked);
-        assertThat("marked: " + marked + " all: " + all, CollectionUtils.toList(itr), is(diff));
+        assertThat("marked: " + marked + " all: " + all, ListUtils.toList(itr), is(diff));
     }
 
     private static void assertDiff(String marked, String all, List<String> diff) throws IOException {
         Iterator<String> itr = createItr(marked, all);
-        assertThat("marked: " + marked + " all: " + all, CollectionUtils.toList(itr), is(diff));
+        assertThat("marked: " + marked + " all: " + all, ListUtils.toList(itr), is(diff));
     }
 
     private static Iterator<String> createItr(String marked, String all) throws IOException {
@@ -189,6 +189,6 @@ public class FileLineDifferenceIteratorTest {
                 }
             });
 
-        assertThat("marked: " + marked + " all: " + all, CollectionUtils.toList(itr), is(diff));
+        assertThat("marked: " + marked + " all: " + all, ListUtils.toList(itr), is(diff));
     }
 }
diff --git a/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/collections/CollectionUtilsTest.java b/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/collections/CollectionUtilsTest.java
index 03ae137267..e9ab948b23 100644
--- a/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/collections/CollectionUtilsTest.java
+++ b/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/collections/CollectionUtilsTest.java
@@ -36,7 +36,6 @@ import java.util.Set;
 import java.util.TreeSet;
 import java.util.function.Predicate;
 import java.util.stream.Collectors;
-import java.util.stream.Stream;
 
 import static org.junit.Assert.fail;
 
@@ -44,80 +43,6 @@ public class CollectionUtilsTest {
 
     final List<String> data = Arrays.asList("one", "two", "three", null);
 
-    @Test
-    public void iterableToList() {
-        // create an iterable
-        final Iterable<String> iterable = new SimpleIterable<>(data);
-
-        Assert.assertEquals(data, CollectionUtils.toList(iterable));
-
-    }
-
-    @Test
-    public void iterableToLinkedList() {
-        // create an iterable
-        final Iterable<String> iterable = new SimpleIterable<>(data);
-
-        Assert.assertEquals(data, CollectionUtils.toLinkedList(iterable));
-    }
-
-    @Test
-    public void iteratorToList() {
-        // create an iterator
-        final Iterable<String> iterable = new SimpleIterable<>(data);
-
-        Assert.assertEquals(data, CollectionUtils.toList(iterable.iterator()));
-    }
-
-    @Test
-    public void partitionList() {
-        final List<String> list = List.of("a", "b", "c", "d", "e", "f", "g");
-        final List<List<String>> partitions = CollectionUtils.partitionList(list, 3);
-        Assert.assertEquals(3, partitions.size());
-        Assert.assertEquals(List.of("a", "b", "c"), partitions.get(0));
-        Assert.assertEquals(List.of("d", "e", "f"), partitions.get(1));
-        Assert.assertEquals(List.of("g"), partitions.get(2));
-    }
-
-    @Test
-    public void partitionListWhenListIsSmallerThanPartitionSize() {
-        final List<String> list = List.of("a");
-        final List<List<String>> partitions = CollectionUtils.partitionList(list, 3);
-        Assert.assertEquals(1, partitions.size());
-        Assert.assertEquals(List.of("a"), partitions.get(0));
-    }
-
-    @Test
-    public void testReverseWithNonEmptyList() {
-        List<String> list = List.of("a", "b", "c");
-        List<String> result = CollectionUtils.reverse(list);
-        List<String> expected = List.of("c", "b", "a");
-        Assert.assertEquals(expected, result);
-    }
-
-    @Test
-    public void testReverseWithEmptyList() {
-        List<String> list = List.of();
-        List<String> result = CollectionUtils.reverse(list);
-        List<String> expected = List.of();
-        Assert.assertEquals(expected, result);
-    }
-
-    @Test(expected = NullPointerException.class)
-    public void testReverseWithNullList() {
-        List<String> list = null;
-        CollectionUtils.reverse(list);
-        fail("Shouldn't reach here");
-    }
-
-    @Test
-    public void testReverseWithSingleElementList() {
-        List<String> list = List.of("a");
-        List<String> result = CollectionUtils.reverse(list);
-        List<String> expected = List.of("a");
-        Assert.assertEquals(expected, result);
-    }
-
     @Test
     public void iterableToSet() {
         // create an iterable
diff --git a/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/collections/ListUtilsTest.java b/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/collections/ListUtilsTest.java
new file mode 100644
index 0000000000..915766771d
--- /dev/null
+++ b/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/collections/ListUtilsTest.java
@@ -0,0 +1,106 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.jackrabbit.oak.commons.collections;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.util.Arrays;
+import java.util.List;
+
+import static org.junit.Assert.fail;
+
+public class ListUtilsTest {
+
+    final List<String> data = Arrays.asList("one", "two", "three", null);
+
+    @Test
+    public void iterableToList() {
+        // create an iterable
+        final Iterable<String> iterable = new SimpleIterable<>(data);
+
+        Assert.assertEquals(data, ListUtils.toList(iterable));
+
+    }
+
+    @Test
+    public void iterableToLinkedList() {
+        // create an iterable
+        final Iterable<String> iterable = new SimpleIterable<>(data);
+
+        Assert.assertEquals(data, ListUtils.toLinkedList(iterable));
+    }
+
+    @Test
+    public void iteratorToList() {
+        // create an iterator
+        final Iterable<String> iterable = new SimpleIterable<>(data);
+
+        Assert.assertEquals(data, ListUtils.toList(iterable.iterator()));
+    }
+
+    @Test
+    public void partitionList() {
+        final List<String> list = List.of("a", "b", "c", "d", "e", "f", "g");
+        final List<List<String>> partitions = ListUtils.partitionList(list, 3);
+        Assert.assertEquals(3, partitions.size());
+        Assert.assertEquals(List.of("a", "b", "c"), partitions.get(0));
+        Assert.assertEquals(List.of("d", "e", "f"), partitions.get(1));
+        Assert.assertEquals(List.of("g"), partitions.get(2));
+    }
+
+    @Test
+    public void partitionListWhenListIsSmallerThanPartitionSize() {
+        final List<String> list = List.of("a");
+        final List<List<String>> partitions = ListUtils.partitionList(list, 3);
+        Assert.assertEquals(1, partitions.size());
+        Assert.assertEquals(List.of("a"), partitions.get(0));
+    }
+
+    @Test
+    public void testReverseWithNonEmptyList() {
+        List<String> list = List.of("a", "b", "c");
+        List<String> result = ListUtils.reverse(list);
+        List<String> expected = List.of("c", "b", "a");
+        Assert.assertEquals(expected, result);
+    }
+
+    @Test
+    public void testReverseWithEmptyList() {
+        List<String> list = List.of();
+        List<String> result = ListUtils.reverse(list);
+        List<String> expected = List.of();
+        Assert.assertEquals(expected, result);
+    }
+
+    @Test(expected = NullPointerException.class)
+    public void testReverseWithNullList() {
+        List<String> list = null;
+        ListUtils.reverse(list);
+        fail("Shouldn't reach here");
+    }
+
+    @Test
+    public void testReverseWithSingleElementList() {
+        List<String> list = List.of("a");
+        List<String> result = ListUtils.reverse(list);
+        List<String> expected = List.of("a");
+        Assert.assertEquals(expected, result);
+    }
+}
\ No newline at end of file
diff --git a/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/sort/StringSortTest.java b/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/sort/StringSortTest.java
index 1006d190ac..63bc57a29e 100644
--- a/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/sort/StringSortTest.java
+++ b/oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/sort/StringSortTest.java
@@ -28,7 +28,7 @@ import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.junit.Test;
 
 import static org.junit.Assert.assertEquals;
@@ -105,7 +105,7 @@ public class StringSortTest {
         Collections.sort(paths, comparator);
         collector.sort();
 
-        List<String> sortedPaths = CollectionUtils.toList(collector.getIds());
+        List<String> sortedPaths = ListUtils.toList(collector.getIds());
         assertEquals(paths.size(), sortedPaths.size());
         assertEquals(paths, sortedPaths);
     }
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/commit/AnnotatingConflictHandler.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/commit/AnnotatingConflictHandler.java
index 2e8f13f977..1d9e24d899 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/commit/AnnotatingConflictHandler.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/commit/AnnotatingConflictHandler.java
@@ -35,7 +35,7 @@ import java.util.List;
 
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.nodetype.NodeTypeConstants;
 import org.apache.jackrabbit.oak.spi.commit.ThreeWayConflictHandler;
 import org.apache.jackrabbit.oak.spi.state.ConflictType;
@@ -136,7 +136,7 @@ public class AnnotatingConflictHandler implements ThreeWayConflictHandler {
     }
 
     private static NodeBuilder addConflictMarker(@NotNull NodeBuilder parent) {
-        List<String> mixins = CollectionUtils.toList(parent.getNames(JCR_MIXINTYPES));
+        List<String> mixins = ListUtils.toList(parent.getNames(JCR_MIXINTYPES));
         if (mixins.add(MIX_REP_MERGE_CONFLICT)) {
             parent.setProperty(JCR_MIXINTYPES, mixins, NAMES);
         }
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/cow/BranchNodeStore.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/cow/BranchNodeStore.java
index 7ccbedfb6b..14fa9f09e3 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/cow/BranchNodeStore.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/cow/BranchNodeStore.java
@@ -18,7 +18,7 @@ package org.apache.jackrabbit.oak.plugins.cow;
 
 import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.memory.MemoryNodeStore;
 import org.apache.jackrabbit.oak.spi.commit.CommitHook;
 import org.apache.jackrabbit.oak.spi.commit.CommitInfo;
@@ -57,7 +57,7 @@ public class BranchNodeStore implements NodeStore, Observable {
 
     public BranchNodeStore(NodeStore nodeStore) throws CommitFailedException {
         this.nodeStore = nodeStore;
-        this.inheritedCheckpoints = CollectionUtils.toList(nodeStore.checkpoints());
+        this.inheritedCheckpoints = ListUtils.toList(nodeStore.checkpoints());
         this.checkpointMapping = new ConcurrentHashMap<>();
 
         String cp = nodeStore.checkpoint(CHECKPOINT_LIFETIME, singletonMap("type", "copy-on-write"));
@@ -126,7 +126,7 @@ public class BranchNodeStore implements NodeStore, Observable {
     @Override
     public Iterable<String> checkpoints() {
         List<String> result = new ArrayList<>(inheritedCheckpoints);
-        result.retainAll(CollectionUtils.toList(nodeStore.checkpoints()));
+        result.retainAll(ListUtils.toList(nodeStore.checkpoints()));
 
         checkpointMapping.entrySet().stream()
                 .filter(e -> memoryNodeStore.listCheckpoints().contains(e.getValue()))
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/aggregate/SimpleNodeAggregator.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/aggregate/SimpleNodeAggregator.java
index c3ec125889..c262eb827e 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/aggregate/SimpleNodeAggregator.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/aggregate/SimpleNodeAggregator.java
@@ -33,7 +33,7 @@ import java.util.List;
 import java.util.Set;
 
 import org.apache.jackrabbit.oak.api.PropertyState;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.query.QueryIndex;
 import org.apache.jackrabbit.oak.spi.state.NodeState;
 
@@ -86,7 +86,7 @@ public class SimpleNodeAggregator implements QueryIndex.NodeAggregator {
                 parentPath = getParentPath(parentPath);
                 if (isNodeType(root, parentPath, primaryType)) {
                     parents.add(parentPath);
-                    parents.addAll(CollectionUtils.toList(getParents(root, parentPath,
+                    parents.addAll(ListUtils.toList(getParents(root, parentPath,
                             false)));
                     return parents.iterator();
                 }
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/inventory/IndexPrinter.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/inventory/IndexPrinter.java
index e27ad0f715..8902dec5c4 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/inventory/IndexPrinter.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/inventory/IndexPrinter.java
@@ -32,7 +32,7 @@ import org.apache.felix.inventory.Format;
 import org.apache.felix.inventory.InventoryPrinter;
 import org.apache.jackrabbit.oak.api.jmx.IndexStatsMBean;
 import org.apache.jackrabbit.oak.commons.IOUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.json.JsopBuilder;
 import org.apache.jackrabbit.oak.plugins.index.AsyncIndexInfo;
 import org.apache.jackrabbit.oak.plugins.index.AsyncIndexInfoService;
@@ -76,7 +76,7 @@ public class IndexPrinter implements InventoryPrinter {
     }
 
     private void asyncLanesInfo(PrinterOutput po) {
-        List<String> asyncLanes = CollectionUtils.toList(asyncIndexInfoService.getAsyncLanes());
+        List<String> asyncLanes = ListUtils.toList(asyncIndexInfoService.getAsyncLanes());
         po.startSection("Async Indexers State", true);
         po.text("Number of async indexer lanes", asyncLanes.size());
 
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/itemsave/ItemSaveValidator.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/itemsave/ItemSaveValidator.java
index f79dc48a7d..fe6663a502 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/itemsave/ItemSaveValidator.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/itemsave/ItemSaveValidator.java
@@ -24,7 +24,7 @@ import java.util.List;
 
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.commit.FailingValidator;
 import org.apache.jackrabbit.oak.spi.commit.SubtreeExcludingValidator;
 import org.apache.jackrabbit.oak.spi.commit.Validator;
@@ -50,7 +50,7 @@ class ItemSaveValidator extends SubtreeExcludingValidator {
         this(new FailingValidator(CommitFailedException.UNSUPPORTED, 0,
                 "Failed to save subtree at " + path + ". There are " +
                         "transient modifications outside that subtree."),
-                CollectionUtils.toList(elements(path)));
+                ListUtils.toList(elements(path)));
     }
 
     private ItemSaveValidator(Validator validator, List<String> path) {
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeEditor.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeEditor.java
index 199524d755..8d8b35e6de 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeEditor.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeEditor.java
@@ -49,7 +49,7 @@ import org.apache.jackrabbit.guava.common.collect.Iterables;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.collections.StreamUtils;
 import org.apache.jackrabbit.oak.namepath.NamePathMapper;
 import org.apache.jackrabbit.oak.plugins.value.jcr.PartialValueFactory;
@@ -442,9 +442,9 @@ public class TypeEditor extends DefaultEditor {
     }
 
     private static boolean mixinsChanged(NodeState before, Iterable<String> after) {
-        List<String> pre = CollectionUtils.toList(before.getNames(JCR_MIXINTYPES));
+        List<String> pre = ListUtils.toList(before.getNames(JCR_MIXINTYPES));
         Collections.sort(pre);
-        List<String> post = CollectionUtils.toList(after);
+        List<String> post = ListUtils.toList(after);
         Collections.sort(post);
         if (pre.isEmpty() && post.isEmpty()) {
             return false;
@@ -468,7 +468,7 @@ public class TypeEditor extends DefaultEditor {
             constraintViolation(21, "Mandatory property '" + properties.iterator().next() + "' not found in a new node");
         }
 
-        List<String> names = CollectionUtils.toList(after.getChildNodeNames());
+        List<String> names = ListUtils.toList(after.getChildNodeNames());
         for (String child : effective.getMandatoryChildNodes()) {
             if (!names.remove(child)) {
                 constraintViolation(25, "Mandatory child node '" + child + "' not found in a new node");
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeRegistration.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeRegistration.java
index ea3566c956..662d298ebc 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeRegistration.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/TypeRegistration.java
@@ -69,6 +69,7 @@ import java.util.Set;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.nodetype.NodeTypeConstants;
 import org.apache.jackrabbit.oak.spi.state.DefaultNodeStateDiff;
 import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
@@ -384,7 +385,7 @@ class TypeRegistration extends DefaultNodeStateDiff {
 
     private void addNameToList(NodeBuilder type, String name, String value) {
         List<String> values;
-        values = CollectionUtils.toList(getNames(type, name));
+        values = ListUtils.toList(getNames(type, name));
         if (!values.contains(value)) {
             values.add(value);
         }
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/EventGenerator.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/EventGenerator.java
index 7f796dc364..46af597a10 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/EventGenerator.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/EventGenerator.java
@@ -30,10 +30,10 @@ import java.util.LinkedList;
 import java.util.List;
 
 import org.apache.jackrabbit.oak.api.PropertyState;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.state.NodeState;
 import org.apache.jackrabbit.oak.spi.state.NodeStateDiff;
 import org.apache.jackrabbit.oak.commons.PerfLogger;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
 import org.jetbrains.annotations.NotNull;
 import org.slf4j.LoggerFactory;
 
@@ -194,9 +194,9 @@ public class EventGenerator {
                 if (OAK_CHILD_ORDER.equals(before.getName())) {
                     // list the child node names before and after the change
                     List<String> beforeNames =
-                            CollectionUtils.toList(before.getValue(NAMES));
+                            ListUtils.toList(before.getValue(NAMES));
                     List<String> afterNames =
-                            CollectionUtils.toList(after.getValue(NAMES));
+                            ListUtils.toList(after.getValue(NAMES));
 
                     // check only those names that weren't added or removed
                     beforeNames.retainAll(new HashSet<>(afterNames));
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/filter/GlobbingPathHelper.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/filter/GlobbingPathHelper.java
index deb729f6ed..1019087783 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/filter/GlobbingPathHelper.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/filter/GlobbingPathHelper.java
@@ -22,7 +22,7 @@ import static org.apache.jackrabbit.oak.commons.PathUtils.elements;
 
 import java.util.List;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 
 public class GlobbingPathHelper {
 
@@ -52,7 +52,7 @@ public class GlobbingPathHelper {
         } else if (!pathWithGlobs.contains("*")) {
             return pathWithGlobs;
         }
-        List<String> elements = CollectionUtils.toLinkedList(elements(pathWithGlobs));
+        List<String> elements = ListUtils.toLinkedList(elements(pathWithGlobs));
         StringBuffer sb = new StringBuffer();
         sb.append("\\Q");
         if (pathWithGlobs.startsWith("/")) {
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/ReadWriteVersionManager.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/ReadWriteVersionManager.java
index f40dcddd71..c80c6c8134 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/ReadWriteVersionManager.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/ReadWriteVersionManager.java
@@ -35,6 +35,7 @@ import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.PathUtils;
 import org.apache.jackrabbit.oak.commons.UUIDUtils;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.conditions.Validate;
 import org.apache.jackrabbit.oak.namepath.NamePathMapper;
 import org.apache.jackrabbit.oak.plugins.memory.PropertyBuilder;
@@ -435,7 +436,7 @@ public class ReadWriteVersionManager extends ReadOnlyVersionManager {
 
         Validate.checkState(versionable.hasProperty(JCR_PREDECESSORS));
         PropertyState state = versionable.getProperty(JCR_PREDECESSORS);
-        List<String> predecessors = CollectionUtils.toList(state.getValue(Type.REFERENCES));
+        List<String> predecessors = ListUtils.toList(state.getValue(Type.REFERENCES));
         NodeBuilder version = vHistory.child(calculateVersion(vHistory, versionable));
 
         String versionUUID = UUIDUtils.generateUUID();
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionableState.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionableState.java
index fec2bf66fd..39d0174b48 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionableState.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/version/VersionableState.java
@@ -60,7 +60,7 @@ import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Tree;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.UUIDUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState;
 import org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder;
 import org.apache.jackrabbit.oak.plugins.memory.PropertyStates;
@@ -187,7 +187,7 @@ class VersionableState {
         frozen.setProperty(JCR_PRIMARYTYPE, NT_FROZENNODE, Type.NAME);
         List<String> mixinTypes;
         if (node.hasProperty(JCR_MIXINTYPES)) {
-            mixinTypes = CollectionUtils.toList(node.getNames(JCR_MIXINTYPES));
+            mixinTypes = ListUtils.toList(node.getNames(JCR_MIXINTYPES));
         } else {
             mixinTypes = Collections.emptyList();
         }
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/ACL.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/ACL.java
index 578b2437cf..c7b9946421 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/ACL.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/ACL.java
@@ -31,7 +31,7 @@ import javax.jcr.security.Privilege;
 
 import org.apache.jackrabbit.guava.common.collect.Iterables;
 import org.apache.jackrabbit.api.security.authorization.PrivilegeManager;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.namepath.NamePathMapper;
 import org.apache.jackrabbit.oak.spi.security.authorization.accesscontrol.ACE;
 import org.apache.jackrabbit.oak.spi.security.authorization.accesscontrol.AbstractAccessControlList;
@@ -164,7 +164,7 @@ abstract class ACL extends AbstractAccessControlList {
     private boolean internalAddEntry(@NotNull ACE entry) throws RepositoryException {
         final String principalName = entry.getPrincipal().getName();
         final Set<Restriction> restrictions = entry.getRestrictions();
-        List<ACE> subList = CollectionUtils.toList(Iterables.filter(entries, ace ->
+        List<ACE> subList = ListUtils.toList(Iterables.filter(entries, ace ->
                 principalName.equals(requireNonNull(ace).getPrincipal().getName()) && restrictions.equals(ace.getRestrictions())));
 
         boolean addEntry = true;
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/PasswordHistory.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/PasswordHistory.java
index 2fb3136a20..66190c7358 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/PasswordHistory.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/PasswordHistory.java
@@ -25,7 +25,7 @@ import org.apache.jackrabbit.guava.common.collect.Iterables;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Tree;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.security.ConfigurationParameters;
 import org.apache.jackrabbit.oak.spi.security.user.UserConstants;
 import org.apache.jackrabbit.oak.spi.security.user.util.PasswordUtil;
@@ -86,7 +86,7 @@ final class PasswordHistory implements UserConstants {
             PropertyState historyProp = passwordTree.getProperty(UserConstants.REP_PWD_HISTORY);
 
             // insert the current (old) password at the beginning of the password history
-            List<String> historyEntries = (historyProp == null) ? new ArrayList<>() : CollectionUtils.toList(historyProp.getValue(Type.STRINGS));
+            List<String> historyEntries = (historyProp == null) ? new ArrayList<>() : ListUtils.toList(historyProp.getValue(Type.STRINGS));
             historyEntries.add(0, currentPasswordHash);
 
             /* remove oldest history entries exceeding configured history max size (e.g. after
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/IndexInfoServiceImplTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/IndexInfoServiceImplTest.java
index 93622817f0..d34cb52b91 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/IndexInfoServiceImplTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/IndexInfoServiceImplTest.java
@@ -21,7 +21,7 @@ package org.apache.jackrabbit.oak.plugins.index;
 import java.util.Collections;
 import java.util.List;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.memory.MemoryNodeStore;
 import org.apache.jackrabbit.oak.spi.commit.CommitInfo;
 import org.apache.jackrabbit.oak.spi.commit.EmptyHook;
@@ -112,7 +112,7 @@ public class IndexInfoServiceImplTest {
         service.bindInfoProviders(type_c);
         service.bindInfoProviders(type_d);
 
-        List<IndexInfo> infos = CollectionUtils.toList(service.getAllIndexInfo());
+        List<IndexInfo> infos = ListUtils.toList(service.getAllIndexInfo());
 
         //Result would only have 2 entries. One throwing exception would be ignored
         assertEquals(2, infos.size());
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/IndexPathServiceImplTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/IndexPathServiceImplTest.java
index 428d194a44..c21bb3170b 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/IndexPathServiceImplTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/IndexPathServiceImplTest.java
@@ -30,6 +30,7 @@ import org.apache.jackrabbit.oak.api.ContentRepository;
 import org.apache.jackrabbit.oak.api.Tree;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.index.nodetype.NodeTypeIndexProvider;
 import org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditorProvider;
 import org.apache.jackrabbit.oak.plugins.memory.MemoryNodeStore;
@@ -100,7 +101,7 @@ public class IndexPathServiceImplTest extends AbstractQueryTest {
 
         List<String> nodetypes = new ArrayList<>();
         if (nodetype.hasProperty(DECLARING_NODE_TYPES)){
-            nodetypes = CollectionUtils.toList(nodetype.getProperty(DECLARING_NODE_TYPES).getValue(Type.STRINGS));
+            nodetypes = ListUtils.toList(nodetype.getProperty(DECLARING_NODE_TYPES).getValue(Type.STRINGS));
         }
 
         nodetypes.add(INDEX_DEFINITIONS_NODE_TYPE);
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/aggregate/SimpleNodeAggregatorTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/aggregate/SimpleNodeAggregatorTest.java
index f5a82f571e..a16922191a 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/aggregate/SimpleNodeAggregatorTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/aggregate/SimpleNodeAggregatorTest.java
@@ -28,7 +28,7 @@ import static org.apache.jackrabbit.oak.plugins.index.aggregate.SimpleNodeAggreg
 
 import java.util.List;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.memory.MemoryNodeStore;
 import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
 import org.apache.jackrabbit.oak.spi.state.NodeState;
@@ -50,7 +50,7 @@ public class SimpleNodeAggregatorTest {
                 NT_FILE, List.of(JCR_CONTENT));
 
         String path = "/file/jcr:content";
-        List<String> actual = CollectionUtils.toList(agg.getParents(
+        List<String> actual = ListUtils.toList(agg.getParents(
                 builder.getNodeState(), path));
 
         assertEquals(List.of("/file"), actual);
@@ -71,7 +71,7 @@ public class SimpleNodeAggregatorTest {
                 NT_FILE, List.of(JCR_CONTENT));
 
         String path = "/file/jcr:content";
-        List<String> actual = CollectionUtils.toList(agg.getParents(
+        List<String> actual = ListUtils.toList(agg.getParents(
                 builder.getNodeState(), path));
 
         assertTrue(actual.isEmpty());
@@ -92,7 +92,7 @@ public class SimpleNodeAggregatorTest {
                 NT_FILE, List.of(INCLUDE_ALL));
 
         String path = "/file/jcr:content";
-        List<String> actual = CollectionUtils.toList(agg.getParents(
+        List<String> actual = ListUtils.toList(agg.getParents(
                 builder.getNodeState(), path));
 
         assertEquals(List.of("/file"), actual);
@@ -113,7 +113,7 @@ public class SimpleNodeAggregatorTest {
                 NT_FILE, List.of("*", "*/*", "*/*/*", "*/*/*/*"));
 
         String path = "/file/jcr:content";
-        List<String> actual = CollectionUtils.toList(agg.getParents(
+        List<String> actual = ListUtils.toList(agg.getParents(
                 builder.getNodeState(), path));
 
         assertEquals(List.of("/file"), actual);
@@ -134,7 +134,7 @@ public class SimpleNodeAggregatorTest {
                 NT_FILE, List.of(INCLUDE_ALL));
 
         String path = "/file/jcr:content";
-        List<String> actual = CollectionUtils.toList(agg.getParents(
+        List<String> actual = ListUtils.toList(agg.getParents(
                 builder.getNodeState(), path));
 
         assertTrue(actual.isEmpty());
@@ -159,7 +159,7 @@ public class SimpleNodeAggregatorTest {
                 List.of(INCLUDE_ALL));
 
         String path = "/folder/file/jcr:content";
-        List<String> actual = CollectionUtils.toList(agg.getParents(
+        List<String> actual = ListUtils.toList(agg.getParents(
                 builder.getNodeState(), path));
 
         assertEquals(List.of("/folder/file", "/folder"), actual);
@@ -184,7 +184,7 @@ public class SimpleNodeAggregatorTest {
                 List.of(JCR_CONTENT));
 
         String path = "/folder/file/jcr:content";
-        List<String> actual = CollectionUtils.toList(agg.getParents(
+        List<String> actual = ListUtils.toList(agg.getParents(
                 builder.getNodeState(), path));
 
         assertEquals(List.of("/folder/file", "/folder"), actual);
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/importer/IndexDefinitionUpdaterTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/importer/IndexDefinitionUpdaterTest.java
index dac5aa1499..78d00fa96e 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/importer/IndexDefinitionUpdaterTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/importer/IndexDefinitionUpdaterTest.java
@@ -31,7 +31,7 @@ import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Tree;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.index.inventory.IndexDefinitionPrinter;
 import org.apache.jackrabbit.oak.plugins.memory.MemoryNodeStore;
 import org.apache.jackrabbit.oak.plugins.tree.factories.TreeFactory;
@@ -143,7 +143,7 @@ public class IndexDefinitionUpdaterTest {
         NodeBuilder idxBuilder = updater.apply(builder, "/oak:index/barIndex");
 
         PropertyState childOrder = builder.getChildNode("oak:index").getProperty(":childOrder");
-        List<String> names = CollectionUtils.toList(childOrder.getValue(Type.NAMES));
+        List<String> names = ListUtils.toList(childOrder.getValue(Type.NAMES));
 
         assertEquals(asList("fooIndex", "barIndex"), names);
 
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/MultiPropertyOrTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/MultiPropertyOrTest.java
index 846db655af..dec279e590 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/MultiPropertyOrTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/MultiPropertyOrTest.java
@@ -35,7 +35,7 @@ import org.apache.jackrabbit.oak.Oak;
 import org.apache.jackrabbit.oak.api.ContentRepository;
 import org.apache.jackrabbit.oak.api.ResultRow;
 import org.apache.jackrabbit.oak.api.Tree;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.index.IndexUtils;
 import org.apache.jackrabbit.oak.InitialContent;
 import org.apache.jackrabbit.oak.query.AbstractQueryTest;
@@ -184,7 +184,7 @@ public class MultiPropertyOrTest extends AbstractQueryTest {
     }
 
     private String measureWithLimit(String query, String lang, int limit) throws ParseException {
-        List<? extends ResultRow> result = CollectionUtils.toList(
+        List<? extends ResultRow> result = ListUtils.toList(
             qe.executeQuery(query, lang, limit, 0, new HashMap<>(),
                 NO_MAPPINGS).getRows());
 
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/strategy/ContentMirrorStoreStrategyTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/strategy/ContentMirrorStoreStrategyTest.java
index cd8db8f95d..bc493994b5 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/strategy/ContentMirrorStoreStrategyTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/index/property/strategy/ContentMirrorStoreStrategyTest.java
@@ -37,7 +37,7 @@ import java.util.function.Supplier;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.query.index.FilterImpl;
 import org.apache.jackrabbit.oak.spi.query.Filter;
 import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
@@ -307,21 +307,21 @@ public class ContentMirrorStoreStrategyTest {
         indexMeta.setChildNode(INDEX_CONTENT_NODE_NAME, builder.getNodeState());
 
         Iterable<String> paths = store.query(filter, null, indexMeta.getNodeState(), KEY);
-        assertThat(CollectionUtils.toList(paths), containsInAnyOrder("a", "a/c", "b"));
+        assertThat(ListUtils.toList(paths), containsInAnyOrder("a", "a/c", "b"));
 
         FilterImpl filter2 = FilterImpl.newTestInstance();
         filter2.restrictPath("/content/a", Filter.PathRestriction.ALL_CHILDREN);
 
         paths = store.query(filter2, null, indexMeta.getNodeState(), KEY);
-        assertThat(CollectionUtils.toList(paths), containsInAnyOrder("a", "a/c"));
+        assertThat(ListUtils.toList(paths), containsInAnyOrder("a", "a/c"));
 
         store = new ContentMirrorStoreStrategy(INDEX_CONTENT_NODE_NAME, "/content", true);
 
         paths = store.query(filter, null, indexMeta.getNodeState(), KEY);
-        assertThat(CollectionUtils.toList(paths), containsInAnyOrder("/content/a", "/content/a/c", "/content/b"));
+        assertThat(ListUtils.toList(paths), containsInAnyOrder("/content/a", "/content/a/c", "/content/b"));
 
         paths = store.query(filter2, null, indexMeta.getNodeState(), KEY);
-        assertThat(CollectionUtils.toList(paths), containsInAnyOrder("/content/a", "/content/a/c"));
+        assertThat(ListUtils.toList(paths), containsInAnyOrder("/content/a", "/content/a/c"));
     }
 
     private static void assertInRange(String msg, double expected, double actual) {
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/migration/FilteringNodeStateTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/migration/FilteringNodeStateTest.java
index 676dced526..79385d3091 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/migration/FilteringNodeStateTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/migration/FilteringNodeStateTest.java
@@ -22,7 +22,7 @@ import org.apache.jackrabbit.JcrConstants;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
 import org.apache.jackrabbit.oak.spi.state.NodeState;
 import org.apache.jackrabbit.oak.spi.state.NodeStore;
@@ -147,7 +147,7 @@ public class FilteringNodeStateTest {
         { // access via getProperty()
             final PropertyState childOrder = decorated.getProperty(OAK_CHILD_ORDER);
             final Iterable<String> values = childOrder.getValue(Type.STRINGS);
-            assertEquals(List.of("football"), CollectionUtils.toList(values));
+            assertEquals(List.of("football"), ListUtils.toList(values));
         }
 
         { // access via getProperties()
@@ -159,7 +159,7 @@ public class FilteringNodeStateTest {
             };
             final PropertyState childOrder = Iterables.find(decorated.getProperties(), isChildOrderProperty::test);
             final Iterable<String> values = childOrder.getValue(Type.STRINGS);
-            assertEquals(List.of("football"), CollectionUtils.toList(values));
+            assertEquals(List.of("football"), ListUtils.toList(values));
         }
     }
 
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/tree/impl/ImmutableTreeTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/tree/impl/ImmutableTreeTest.java
index 11f5334937..af5c699e8e 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/tree/impl/ImmutableTreeTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/tree/impl/ImmutableTreeTest.java
@@ -27,7 +27,7 @@ import org.apache.jackrabbit.JcrConstants;
 import org.apache.jackrabbit.oak.AbstractSecurityTest;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Tree;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.tree.TreeConstants;
 import org.apache.jackrabbit.oak.plugins.tree.TreeType;
 import org.apache.jackrabbit.oak.plugins.tree.TreeTypeProvider;
@@ -265,7 +265,7 @@ public class ImmutableTreeTest extends AbstractSecurityTest {
     }
 
     private static void assertSequence(Iterable<Tree> trees, String... names) {
-        List<String> actual = CollectionUtils.toList(Iterables.transform(trees, input -> input.getName()));
+        List<String> actual = ListUtils.toList(Iterables.transform(trees, input -> input.getName()));
         assertEquals(List.of(names), actual);
     }
 
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/query/OrQueryOrderLimitWithoutIndexTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/query/OrQueryOrderLimitWithoutIndexTest.java
index fa9fb9fe41..57ca013012 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/query/OrQueryOrderLimitWithoutIndexTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/query/OrQueryOrderLimitWithoutIndexTest.java
@@ -25,7 +25,7 @@ import org.apache.jackrabbit.oak.api.QueryEngine;
 import org.apache.jackrabbit.oak.api.Result;
 import org.apache.jackrabbit.oak.api.ResultRow;
 import org.apache.jackrabbit.oak.api.Tree;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.security.OpenSecurityProvider;
 import org.junit.After;
 import org.junit.Assert;
@@ -84,7 +84,7 @@ public class OrQueryOrderLimitWithoutIndexTest extends AbstractQueryTest {
         Result result = qe.executeQuery(query, QueryEngineImpl.SQL2, limit, offset,
                 QueryEngine.NO_BINDINGS, QueryEngine.NO_MAPPINGS);
 
-        List<ResultRow> rows = CollectionUtils.toList(result.getRows());
+        List<ResultRow> rows = ListUtils.toList(result.getRows());
         Assert.assertEquals(expected.length, rows.size());
 
         int i = 0;
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/query/UnionQueryTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/query/UnionQueryTest.java
index 92af3b07cc..969c164f32 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/query/UnionQueryTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/query/UnionQueryTest.java
@@ -33,7 +33,7 @@ import org.apache.jackrabbit.oak.api.Result;
 import org.apache.jackrabbit.oak.api.ResultRow;
 import org.apache.jackrabbit.oak.api.Tree;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.namepath.NamePathMapper;
 import org.apache.jackrabbit.oak.namepath.impl.GlobalNameMapper;
 import org.apache.jackrabbit.oak.namepath.impl.NamePathMapperImpl;
@@ -222,7 +222,7 @@ public class UnionQueryTest extends AbstractQueryTest {
         Result result = qe.executeQuery(union, QueryEngineImpl.SQL2, limit, offset,
                 QueryEngine.NO_BINDINGS, QueryEngine.NO_MAPPINGS);
 
-        List<ResultRow> rows = CollectionUtils.toList(result.getRows());
+        List<ResultRow> rows = ListUtils.toList(result.getRows());
         assertEquals(expected.length, rows.size());
 
         int i = 0;
@@ -247,7 +247,7 @@ public class UnionQueryTest extends AbstractQueryTest {
         Result result = qe.executeQuery(union, QueryEngineImpl.SQL2, Optional.empty(), Optional.empty(),
                 QueryEngine.NO_BINDINGS, QueryEngine.NO_MAPPINGS);
 
-        List<ResultRow> rows = CollectionUtils.toList(result.getRows());
+        List<ResultRow> rows = ListUtils.toList(result.getRows());
         assertEquals(expected.length, rows.size());
 
         int i = 0;
@@ -302,7 +302,7 @@ public class UnionQueryTest extends AbstractQueryTest {
         Result result = qe.executeQuery(explainedStatement, QueryEngineImpl.SQL2, limit, offset,
                 QueryEngine.NO_BINDINGS, QueryEngine.NO_MAPPINGS);
 
-        List<ResultRow> rows = CollectionUtils.toList(result.getRows());
+        List<ResultRow> rows = ListUtils.toList(result.getRows());
         assertEquals(expected.length, rows.size());
 
         int i = 0;
@@ -353,7 +353,7 @@ public class UnionQueryTest extends AbstractQueryTest {
         Result result = qe.executeQuery(explainedStatement, QueryEngineImpl.SQL2, limit, offset,
                 QueryEngine.NO_BINDINGS, QueryEngine.NO_MAPPINGS);
 
-        List<ResultRow> rows = CollectionUtils.toList(result.getRows());
+        List<ResultRow> rows = ListUtils.toList(result.getRows());
         assertEquals(expected.length, rows.size());
 
         int i = 0;
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/PasswordHistoryTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/PasswordHistoryTest.java
index 08139e751b..1c5f08d1ba 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/PasswordHistoryTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/PasswordHistoryTest.java
@@ -28,7 +28,7 @@ import org.apache.jackrabbit.guava.common.collect.Iterables;
 import org.apache.jackrabbit.api.security.user.User;
 import org.apache.jackrabbit.oak.AbstractSecurityTest;
 import org.apache.jackrabbit.oak.api.Tree;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.security.ConfigurationParameters;
 import org.apache.jackrabbit.oak.spi.security.user.UserConfiguration;
 import org.apache.jackrabbit.oak.spi.security.user.UserConstants;
@@ -62,7 +62,7 @@ public class PasswordHistoryTest extends AbstractSecurityTest implements UserCon
     @NotNull
     private List<String> getHistory(@NotNull User user) throws RepositoryException {
         Iterable<String> history = TreeUtil.getStrings(root.getTree(user.getPath()).getChild(REP_PWD), REP_PWD_HISTORY);
-        List<String> result = history == null ? Collections.emptyList() : CollectionUtils.toList(history);
+        List<String> result = history == null ? Collections.emptyList() : ListUtils.toList(history);
         Collections.reverse(result);
         return result;
     }
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserImporterMembershipIgnoreTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserImporterMembershipIgnoreTest.java
index ff94c3df30..b5cd22da39 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserImporterMembershipIgnoreTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserImporterMembershipIgnoreTest.java
@@ -27,6 +27,7 @@ import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Tree;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.security.ConfigurationParameters;
 import org.apache.jackrabbit.oak.spi.security.principal.EveryonePrincipal;
 import org.junit.Test;
@@ -164,7 +165,7 @@ public class UserImporterMembershipIgnoreTest extends UserImporterBaseTest {
 
         PropertyState members = groupTree.getProperty(REP_MEMBERS);
         assertNotNull(members);
-        assertEquals(List.of(contentId), CollectionUtils.toList(members.getValue(Type.STRINGS)));
+        assertEquals(List.of(contentId), ListUtils.toList(members.getValue(Type.STRINGS)));
     }
 
     @Test
@@ -179,7 +180,7 @@ public class UserImporterMembershipIgnoreTest extends UserImporterBaseTest {
 
         PropertyState members = groupTree.getProperty(REP_MEMBERS);
         assertNotNull(members);
-        assertEquals(List.of(contentId), CollectionUtils.toList((members.getValue(Type.STRINGS))));
+        assertEquals(List.of(contentId), ListUtils.toList((members.getValue(Type.STRINGS))));
     }
 
     @Test
@@ -208,7 +209,7 @@ public class UserImporterMembershipIgnoreTest extends UserImporterBaseTest {
 
         PropertyState members = groupTree.getProperty(REP_MEMBERS);
         assertNotNull(members);
-        assertEquals(List.of(knownMemberContentId), CollectionUtils.toList((members.getValue(Type.STRINGS))));
+        assertEquals(List.of(knownMemberContentId), ListUtils.toList((members.getValue(Type.STRINGS))));
     }
 
     @Test
@@ -226,6 +227,6 @@ public class UserImporterMembershipIgnoreTest extends UserImporterBaseTest {
 
         PropertyState members = groupTree.getProperty(REP_MEMBERS);
         assertNotNull(members);
-        assertEquals(List.of(contentId), CollectionUtils.toList((members.getValue(Type.STRINGS))));
+        assertEquals(List.of(contentId), ListUtils.toList((members.getValue(Type.STRINGS))));
     }
 }
\ No newline at end of file
diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/query/UserQueryManagerTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/query/UserQueryManagerTest.java
index 0a372ee494..2fe6b956ff 100644
--- a/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/query/UserQueryManagerTest.java
+++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/query/UserQueryManagerTest.java
@@ -27,6 +27,7 @@ import org.apache.jackrabbit.oak.api.ContentSession;
 import org.apache.jackrabbit.oak.api.Root;
 import org.apache.jackrabbit.oak.commons.PathUtils;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.query.QueryEngineSettings;
 import org.apache.jackrabbit.oak.security.internal.SecurityProviderBuilder;
 import org.apache.jackrabbit.oak.security.user.AbstractUserTest;
@@ -495,7 +496,7 @@ public class UserQueryManagerTest extends AbstractUserTest {
         };
 
         Iterator<Authorizable> result = queryMgr.findAuthorizables(q);
-        assertEquals(List.of(user, g2, g), CollectionUtils.toList(result));
+        assertEquals(List.of(user, g2, g), ListUtils.toList(result));
     }
 
     @Test
@@ -516,7 +517,7 @@ public class UserQueryManagerTest extends AbstractUserTest {
         };
 
         Iterator<Authorizable> result = queryMgr.findAuthorizables(q);
-        assertEquals(List.of(user, g, g2), CollectionUtils.toList(result));
+        assertEquals(List.of(user, g, g2), ListUtils.toList(result));
     }
 
     @Test
diff --git a/oak-it/src/test/java/org/apache/jackrabbit/oak/composite/CompositeNodeStoreTest.java b/oak-it/src/test/java/org/apache/jackrabbit/oak/composite/CompositeNodeStoreTest.java
index 965c8df918..f94d09e1f1 100644
--- a/oak-it/src/test/java/org/apache/jackrabbit/oak/composite/CompositeNodeStoreTest.java
+++ b/oak-it/src/test/java/org/apache/jackrabbit/oak/composite/CompositeNodeStoreTest.java
@@ -51,7 +51,7 @@ import org.apache.commons.io.FileUtils;
 import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore;
 import org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBuilder;
 import org.apache.jackrabbit.oak.plugins.document.rdb.RDBDataSourceFactory;
@@ -650,13 +650,13 @@ public class CompositeNodeStoreTest {
         deepMountBuilder.child("new").setProperty("store", "deepMounted", Type.STRING);
         deepMountedStore.merge(deepMountBuilder, EmptyHook.INSTANCE, CommitInfo.EMPTY);
 
-        List<ChildNodeEntry> children = CollectionUtils.toList(filter(store.getRoot().getChildNodeEntries(),
+        List<ChildNodeEntry> children = ListUtils.toList(filter(store.getRoot().getChildNodeEntries(),
                 x -> Objects.equals(x == null ? null : x.getName(), "new")));
         assertEquals(1, children.size());
         assertEquals("global", children.get(0).getNodeState().getString("store"));
 
         NodeBuilder rootBuilder = store.getRoot().builder();
-        List<String> childNames = CollectionUtils.toList(filter(rootBuilder.getChildNodeNames(),
+        List<String> childNames = ListUtils.toList(filter(rootBuilder.getChildNodeNames(),
                 x -> Objects.equals(x, "new")));
         assertEquals(1, childNames.size());
         assertEquals("global", rootBuilder.getChildNode("new").getString("store"));
diff --git a/oak-it/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreTrackerGCTest.java b/oak-it/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreTrackerGCTest.java
index 37e0d0bf75..8098cf8b27 100644
--- a/oak-it/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreTrackerGCTest.java
+++ b/oak-it/src/test/java/org/apache/jackrabbit/oak/plugins/blob/datastore/DataStoreTrackerGCTest.java
@@ -34,6 +34,7 @@ import ch.qos.logback.classic.Level;
 import org.apache.commons.io.FileUtils;
 import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.junit.LogCustomizer;
 import org.apache.jackrabbit.oak.plugins.blob.BlobTrackingStore;
 import org.apache.jackrabbit.oak.plugins.blob.MarkSweepGarbageCollector;
@@ -346,7 +347,7 @@ public class DataStoreTrackerGCTest {
             Iterator<String> idIter =
                 ((GarbageCollectableBlobStore) ds.getBlobStore())
                     .resolveChunks(b.toString());
-            List<String> ids = CollectionUtils.toList(idIter);
+            List<String> ids = ListUtils.toList(idIter);
             if (toBeDeleted != i) {
                 set.addAll(ids);
             }
diff --git a/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ActiveDeletedBlobCollectorFactory.java b/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ActiveDeletedBlobCollectorFactory.java
index b2852854ac..92ee7e34cc 100644
--- a/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ActiveDeletedBlobCollectorFactory.java
+++ b/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ActiveDeletedBlobCollectorFactory.java
@@ -46,7 +46,7 @@ import org.apache.commons.io.filefilter.RegexFileFilter;
 import org.apache.jackrabbit.core.data.DataStoreException;
 import org.apache.jackrabbit.oak.commons.FileIOUtils;
 import org.apache.jackrabbit.oak.commons.PerfLogger;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.blob.BlobTrackingStore;
 import org.apache.jackrabbit.oak.plugins.blob.datastore.BlobTracker;
 import org.apache.jackrabbit.oak.plugins.blob.datastore.BlobTracker.Options;
@@ -272,7 +272,7 @@ public class ActiveDeletedBlobCollectorFactory {
 
                                     lastDeletedBlobTimestamp = Math.max(lastDeletedBlobTimestamp, blobDeletionTimestamp);
 
-                                    List<String> chunkIds = CollectionUtils.toList(blobStore.resolveChunks(deletedBlobId));
+                                    List<String> chunkIds = ListUtils.toList(blobStore.resolveChunks(deletedBlobId));
                                     if (chunkIds.size() > 0) {
                                         long deleted = blobStore.countDeleteChunks(chunkIds, 0);
                                         if (deleted < 1) {
diff --git a/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexRootDirectory.java b/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexRootDirectory.java
index 445ca81beb..afac694466 100644
--- a/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexRootDirectory.java
+++ b/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexRootDirectory.java
@@ -37,7 +37,7 @@ import org.apache.jackrabbit.guava.common.hash.Hashing;
 import org.apache.commons.io.FileUtils;
 import org.apache.jackrabbit.oak.commons.IOUtils;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.conditions.Validate;
 import org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.NRTIndex;
 import org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition;
@@ -189,7 +189,7 @@ public class IndexRootDirectory {
      * The resulting file name would be truncated to MAX_NAME_LENGTH
      */
     static String getIndexFolderBaseName(String indexPath) {
-        List<String> elements = CollectionUtils.toList(PathUtils.elements(indexPath));
+        List<String> elements = ListUtils.toList(PathUtils.elements(indexPath));
         Collections.reverse(elements);
         List<String> result = new ArrayList<>(2);
 
diff --git a/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/OakBufferedIndexFile.java b/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/OakBufferedIndexFile.java
index db6b1d7f45..f6d77713cc 100644
--- a/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/OakBufferedIndexFile.java
+++ b/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/OakBufferedIndexFile.java
@@ -28,7 +28,7 @@ import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.StringUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.conditions.Validate;
 import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
 import org.apache.lucene.store.DataInput;
@@ -127,7 +127,7 @@ class OakBufferedIndexFile implements OakIndexFile {
 
         PropertyState property = file.getProperty(JCR_DATA);
         if (property != null && property.getType() == BINARIES) {
-            this.data = CollectionUtils.toList(property.getValue(BINARIES));
+            this.data = ListUtils.toList(property.getValue(BINARIES));
         } else {
             this.data = new ArrayList<>();
         }
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/IndexStatisticsTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/IndexStatisticsTest.java
index 946ed15a5b..0dc7bd7692 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/IndexStatisticsTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/IndexStatisticsTest.java
@@ -16,7 +16,7 @@
  */
 package org.apache.jackrabbit.oak.plugins.index.lucene;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.index.search.FieldNames;
 import org.apache.lucene.document.Document;
 import org.apache.lucene.document.Field;
@@ -157,7 +157,7 @@ public class IndexStatisticsTest {
     }
 
     private static Directory createSampleDirectory(long numOfDocs, Iterable<Document> moreDocs) throws IOException {
-        List<Document> docs = CollectionUtils.toList(moreDocs);
+        List<Document> docs = ListUtils.toList(moreDocs);
         for (int i = 0; i < numOfDocs; i++) {
             Document doc = new Document();
             doc.add(new StringField("foo", "bar" + i, Field.Store.NO));
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexTest.java
index 1b998419cb..f09fc84b84 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexTest.java
@@ -68,7 +68,7 @@ import org.apache.commons.io.IOUtils;
 import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.junit.LogCustomizer;
 import org.apache.jackrabbit.oak.plugins.index.IndexConstants;
 import org.apache.jackrabbit.oak.plugins.index.IndexUpdate;
@@ -216,7 +216,7 @@ public class LuceneIndexTest {
         List<IndexPlan> plans = queryIndex.getPlans(filter, null, indexed);
         Cursor cursor = queryIndex.query(plans.get(0), indexed);
 
-        List<String> paths = CollectionUtils.toList(transform(cursor, IndexRow::getPath));
+        List<String> paths = ListUtils.toList(transform(cursor, IndexRow::getPath));
         assertFalse(paths.isEmpty());
         assertEquals(LuceneIndex.LUCENE_QUERY_BATCH_SIZE + 1, paths.size());
     }
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndexTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndexTest.java
index ccd63eabf3..e8baf83f30 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndexTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndexTest.java
@@ -58,7 +58,7 @@ import org.apache.jackrabbit.oak.api.Result;
 import org.apache.jackrabbit.oak.api.ResultRow;
 import org.apache.jackrabbit.oak.api.Tree;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.concurrent.ExecutorCloser;
 import org.apache.jackrabbit.oak.plugins.index.AsyncIndexInfoService;
 import org.apache.jackrabbit.oak.plugins.index.AsyncIndexInfoServiceImpl;
@@ -1106,9 +1106,9 @@ public class LucenePropertyIndexTest extends AbstractQueryTest {
         child.setProperty("bar", "baz");
         root.commit();
 
-        assertOrderedQuery("select [jcr:path] from [nt:base] where [bar] = 'baz' order by [foo]", CollectionUtils
+        assertOrderedQuery("select [jcr:path] from [nt:base] where [bar] = 'baz' order by [foo]", ListUtils
                 .toList(Iterables.concat(List.of("/test/a"), getSortedPaths(tuples, OrderDirection.ASC))));
-        assertOrderedQuery("select [jcr:path] from [nt:base] where [bar] = 'baz' order by [foo] DESC", CollectionUtils
+        assertOrderedQuery("select [jcr:path] from [nt:base] where [bar] = 'baz' order by [foo] DESC", ListUtils
                 .toList(Iterables.concat(getSortedPaths(tuples, OrderDirection.DESC), List.of("/test/a"))));
     }
 
@@ -1196,10 +1196,10 @@ public class LucenePropertyIndexTest extends AbstractQueryTest {
         root.commit();
 
         // Add the path of property added as timestamp string in the sorted list
-        assertOrderedQuery("select [jcr:path] from [nt:base] where [bar] = 'baz' order by [foo]", CollectionUtils
+        assertOrderedQuery("select [jcr:path] from [nt:base] where [bar] = 'baz' order by [foo]", ListUtils
                 .toList(Iterables.concat(List.of("/test/n0"), getSortedPaths(tuples, OrderDirection.ASC))));
         // Append the path of property added as timestamp string to the sorted list
-        assertOrderedQuery("select [jcr:path] from [nt:base] where [bar] = 'baz' order by [foo] DESC", CollectionUtils
+        assertOrderedQuery("select [jcr:path] from [nt:base] where [bar] = 'baz' order by [foo] DESC", ListUtils
                 .toList(Iterables.concat(getSortedPaths(tuples, OrderDirection.DESC), List.of("/test/n0"))));
     }
 
@@ -1428,7 +1428,7 @@ public class LucenePropertyIndexTest extends AbstractQueryTest {
     }
 
     private String measureWithLimit(String query, String lang, int limit) throws ParseException {
-        List<? extends ResultRow> result = CollectionUtils.toList(
+        List<? extends ResultRow> result = ListUtils.toList(
             qe.executeQuery(query, lang, limit, 0, new HashMap<>(),
                 NO_MAPPINGS).getRows());
 
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ActiveDeletedBlobCollectorTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ActiveDeletedBlobCollectorTest.java
index 67c0ae745f..3d02dd8e78 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ActiveDeletedBlobCollectorTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ActiveDeletedBlobCollectorTest.java
@@ -51,7 +51,7 @@ import org.apache.jackrabbit.guava.common.collect.Iterators;
 import org.apache.commons.io.FileUtils;
 import org.apache.jackrabbit.core.data.DataStoreException;
 import org.apache.jackrabbit.oak.commons.CIHelper;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.junit.LogCustomizer;
 import org.apache.jackrabbit.oak.plugins.index.lucene.directory.ActiveDeletedBlobCollectorFactory.ActiveDeletedBlobCollector;
 import org.apache.jackrabbit.oak.plugins.index.lucene.directory.ActiveDeletedBlobCollectorFactory.ActiveDeletedBlobCollectorImpl;
@@ -377,7 +377,7 @@ public class ActiveDeletedBlobCollectorTest {
         bdc.deleted("blobId3", Collections.singleton("/c"));
         bdc.commitProgress(COMMIT_SUCCEDED);
 
-        List<String> externallyDeletedChunks = CollectionUtils.toList(blobStore.resolveChunks("blobId2"));
+        List<String> externallyDeletedChunks = ListUtils.toList(blobStore.resolveChunks("blobId2"));
         blobStore.countDeleteChunks(externallyDeletedChunks, 0);
 
         warnLogCustomizer.starting();
@@ -395,7 +395,7 @@ public class ActiveDeletedBlobCollectorTest {
         bdc.commitProgress(COMMIT_SUCCEDED);
 
         blobStore.resetLists();
-        blobStore.failWithDSEForChunkIds.addAll(CollectionUtils.toList(blobStore.resolveChunks("blobId4")));
+        blobStore.failWithDSEForChunkIds.addAll(ListUtils.toList(blobStore.resolveChunks("blobId4")));
 
         warnLogCustomizer.starting();
         adbc.purgeBlobsDeleted(clock.getTimeIncreasing(), blobStore);
@@ -411,7 +411,7 @@ public class ActiveDeletedBlobCollectorTest {
         bdc.commitProgress(COMMIT_SUCCEDED);
 
         blobStore.resetLists();
-        blobStore.failWithExceptionForChunkIds.addAll(CollectionUtils.toList(blobStore.resolveChunks("blobId6")));
+        blobStore.failWithExceptionForChunkIds.addAll(ListUtils.toList(blobStore.resolveChunks("blobId6")));
 
         warnLogCustomizer.starting();
         adbc.purgeBlobsDeleted(clock.getTimeIncreasing(), blobStore);
@@ -435,7 +435,7 @@ public class ActiveDeletedBlobCollectorTest {
         bdc.deleted("blobId3", Collections.singleton("/c"));
         bdc.commitProgress(COMMIT_SUCCEDED);
 
-        List<String> externallyDeletedChunks = CollectionUtils.toList(blobStore.resolveChunks("blobId2"));
+        List<String> externallyDeletedChunks = ListUtils.toList(blobStore.resolveChunks("blobId2"));
         blobStore.countDeleteChunks(externallyDeletedChunks, 0);
 
         warnLogCustomizer.starting();
@@ -453,7 +453,7 @@ public class ActiveDeletedBlobCollectorTest {
         bdc.commitProgress(COMMIT_SUCCEDED);
 
         blobStore.resetLists();
-        blobStore.failWithDSEForChunkIds.addAll(CollectionUtils.toList(blobStore.resolveChunks("blobId4")));
+        blobStore.failWithDSEForChunkIds.addAll(ListUtils.toList(blobStore.resolveChunks("blobId4")));
 
         warnLogCustomizer.starting();
         adbc.purgeBlobsDeleted(clock.getTimeIncreasing(), blobStore);
@@ -498,7 +498,7 @@ public class ActiveDeletedBlobCollectorTest {
     private void verifyBlobsDeleted(String ... blobIds) throws IOException {
         List<String> chunkIds = new ArrayList<>();
         for (String blobId : blobIds) {
-            chunkIds.addAll(CollectionUtils.toList(blobStore.resolveChunks(blobId)));
+            chunkIds.addAll(ListUtils.toList(blobStore.resolveChunks(blobId)));
         }
 
         assertThat(blobStore.deletedChunkIds, containsInAnyOrder(chunkIds.toArray()));
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ActiveDeletedBlobSyncTrackerTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ActiveDeletedBlobSyncTrackerTest.java
index bd99136ead..eeb271699e 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ActiveDeletedBlobSyncTrackerTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ActiveDeletedBlobSyncTrackerTest.java
@@ -27,7 +27,7 @@ import org.apache.commons.io.FileUtils;
 import org.apache.jackrabbit.oak.InitialContent;
 import org.apache.jackrabbit.oak.Oak;
 import org.apache.jackrabbit.oak.api.ContentRepository;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.blob.BlobTrackingStore;
 import org.apache.jackrabbit.oak.plugins.blob.datastore.BlobIdTracker;
 import org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore;
@@ -141,9 +141,9 @@ public class ActiveDeletedBlobSyncTrackerTest extends AbstractActiveDeletedBlobT
     private static void assertTrackedDeleted(Iterator<String> afterDeletions,
         GarbageCollectableBlobStore blobStore) throws IOException {
 
-        List<String> afterDeletionIds = CollectionUtils.toList(afterDeletions);
+        List<String> afterDeletionIds = ListUtils.toList(afterDeletions);
         // get the currently tracked ones
-        List<String> trackedIds = CollectionUtils.toList(((BlobTrackingStore) blobStore).getTracker().get());
+        List<String> trackedIds = ListUtils.toList(((BlobTrackingStore) blobStore).getTracker().get());
         assertEquals("Tracked ids length different from current blob list",
             trackedIds.size(), afterDeletionIds.size());
         assertTrue("Tracked ids different from current blob list",
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ChunkedOakDirectoryTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ChunkedOakDirectoryTest.java
index d96b748bff..8d4e202efa 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ChunkedOakDirectoryTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/ChunkedOakDirectoryTest.java
@@ -21,7 +21,7 @@ package org.apache.jackrabbit.oak.plugins.index.lucene.directory;
 import org.apache.commons.io.IOUtils;
 import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.api.PropertyState;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexDefinition;
 import org.apache.jackrabbit.oak.plugins.index.search.FulltextIndexConstants;
 import org.apache.jackrabbit.oak.segment.SegmentNodeStore;
@@ -93,7 +93,7 @@ public class ChunkedOakDirectoryTest extends OakDirectoryTestBase {
 
     @Override
     void assertBlobSizeInWrite(PropertyState jcrData, int blobSize, int fileSize) {
-        List<Blob> blobs = CollectionUtils.toList(jcrData.getValue(BINARIES));
+        List<Blob> blobs = ListUtils.toList(jcrData.getValue(BINARIES));
         assertEquals(blobSize + UNIQUE_KEY_SIZE, blobs.get(0).length());
     }
 
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexConsistencyCheckerTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexConsistencyCheckerTest.java
index 5d33531c2d..53d34adf15 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexConsistencyCheckerTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/IndexConsistencyCheckerTest.java
@@ -28,7 +28,7 @@ import org.apache.commons.io.IOUtils;
 import org.apache.jackrabbit.oak.InitialContentHelper;
 import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexDefinition;
 import org.apache.jackrabbit.oak.plugins.index.lucene.OakAnalyzer;
 import org.apache.jackrabbit.oak.plugins.index.lucene.directory.IndexConsistencyChecker.Level;
@@ -171,7 +171,7 @@ public class IndexConsistencyCheckerTest {
         NodeBuilder builder = rootState.builder();
 
         NodeBuilder file = idx.getChildNode(":data").getChildNode("_0.cfe");
-        List<Blob> blobs = CollectionUtils.toList(file.getProperty("jcr:data").getValue(Type.BINARIES));
+        List<Blob> blobs = ListUtils.toList(file.getProperty("jcr:data").getValue(Type.BINARIES));
 
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         IOUtils.copy(blobs.get(0).getNewStream(), baos);
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/BucketSwitcherTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/BucketSwitcherTest.java
index d44271dba2..80b6c7691a 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/BucketSwitcherTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/BucketSwitcherTest.java
@@ -18,7 +18,7 @@
  */
 package org.apache.jackrabbit.oak.plugins.index.lucene.property;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.state.EqualsDiff;
 import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
 import org.apache.jackrabbit.oak.spi.state.NodeState;
@@ -42,7 +42,7 @@ public class BucketSwitcherTest {
     @Test
     public void basic() throws Exception {
         bs.switchBucket(100);
-        assertThat(CollectionUtils.toList(bs.getOldBuckets()), empty());
+        assertThat(ListUtils.toList(bs.getOldBuckets()), empty());
     }
 
     @Test
@@ -51,7 +51,7 @@ public class BucketSwitcherTest {
         builder.setProperty(PROP_HEAD_BUCKET, "1");
 
         bs.switchBucket(100);
-        assertThat(CollectionUtils.toList(bs.getOldBuckets()), empty());
+        assertThat(ListUtils.toList(bs.getOldBuckets()), empty());
     }
 
     @Test
@@ -64,7 +64,7 @@ public class BucketSwitcherTest {
         bs.switchBucket(100);
         assertFalse(builder.hasProperty(PROP_PREVIOUS_BUCKET));
         assertEquals("2", builder.getString(PROP_HEAD_BUCKET));
-        assertThat(CollectionUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1"));
+        assertThat(ListUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1"));
     }
 
     @Test
@@ -80,7 +80,7 @@ public class BucketSwitcherTest {
         assertEquals("3", builder.getString(PROP_HEAD_BUCKET));
         assertTrue(builder.hasChildNode("3"));
 
-        assertThat(CollectionUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1"));
+        assertThat(ListUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1"));
     }
 
     @Test
@@ -95,7 +95,7 @@ public class BucketSwitcherTest {
         bs.switchBucket(150);
         assertFalse(builder.hasProperty(PROP_PREVIOUS_BUCKET));
         assertEquals("3", builder.getString(PROP_HEAD_BUCKET));
-        assertThat(CollectionUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1", "2"));
+        assertThat(ListUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1", "2"));
     }
 
     /**
@@ -116,7 +116,7 @@ public class BucketSwitcherTest {
 
         assertEquals("3", builder.getString(PROP_HEAD_BUCKET));
         assertEquals("2", builder.getString(PROP_PREVIOUS_BUCKET));
-        assertThat(CollectionUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1"));
+        assertThat(ListUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1"));
 
         NodeState state1 = builder.getNodeState();
         assertFalse(bs.switchBucket(100));
@@ -125,7 +125,7 @@ public class BucketSwitcherTest {
         //as previous
         assertEquals("3", builder.getString(PROP_HEAD_BUCKET));
         assertEquals("2", builder.getString(PROP_PREVIOUS_BUCKET));
-        assertThat(CollectionUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1"));
+        assertThat(ListUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1"));
 
         NodeState state2 = builder.getNodeState();
         assertFalse(bs.switchBucket(100));
@@ -133,7 +133,7 @@ public class BucketSwitcherTest {
         //Async indexer time still not changed. So head bucket remains same
         assertEquals("3", builder.getString(PROP_HEAD_BUCKET));
         assertEquals("2", builder.getString(PROP_PREVIOUS_BUCKET));
-        assertThat(CollectionUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1"));
+        assertThat(ListUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1"));
 
         NodeState state3 = builder.getNodeState();
 
@@ -158,7 +158,7 @@ public class BucketSwitcherTest {
 
         assertEquals("3", builder.getString(PROP_HEAD_BUCKET));
         assertEquals("2", builder.getString(PROP_PREVIOUS_BUCKET));
-        assertThat(CollectionUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1"));
+        assertThat(ListUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1"));
 
         NodeState state1 = builder.getNodeState();
         assertTrue(bs.switchBucket(150));
@@ -166,14 +166,14 @@ public class BucketSwitcherTest {
         //This time previous bucket should be discarded
         assertEquals("3", builder.getString(PROP_HEAD_BUCKET));
         assertNull(builder.getString(PROP_PREVIOUS_BUCKET));
-        assertThat(CollectionUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1", "2"));
+        assertThat(ListUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1", "2"));
 
         NodeState state2 = builder.getNodeState();
         assertTrue(bs.switchBucket(200));
 
         assertEquals("3", builder.getString(PROP_HEAD_BUCKET));
         assertNull(builder.getString(PROP_PREVIOUS_BUCKET));
-        assertThat(CollectionUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1", "2"));
+        assertThat(ListUtils.toList(bs.getOldBuckets()), containsInAnyOrder("1", "2"));
 
         //assert no change done after previous is removed
         //not even change of asyncIndexedTo
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/HybridPropertyIndexLookupTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/HybridPropertyIndexLookupTest.java
index 99f4f8adab..637433fbcd 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/HybridPropertyIndexLookupTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/HybridPropertyIndexLookupTest.java
@@ -21,7 +21,7 @@ package org.apache.jackrabbit.oak.plugins.index.lucene.property;
 import java.util.List;
 
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.index.lucene.util.LuceneIndexDefinitionBuilder;
 import org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition;
 import org.apache.jackrabbit.oak.plugins.index.search.PropertyDefinition;
@@ -107,7 +107,7 @@ public class HybridPropertyIndexLookupTest {
         Iterable<String> paths = lookup.query(filter, propertyName,
                 filter.getPropertyRestriction(propertyName));
 
-        assertThat(CollectionUtils.toList(paths), containsInAnyOrder("/a"));
+        assertThat(ListUtils.toList(paths), containsInAnyOrder("/a"));
     }
 
     @Test
@@ -127,14 +127,14 @@ public class HybridPropertyIndexLookupTest {
         Iterable<String> paths = lookup.query(filter, propertyName,
                 filter.getPropertyRestriction(propertyName));
 
-        assertThat(CollectionUtils.toList(paths), containsInAnyOrder("/a"));
+        assertThat(ListUtils.toList(paths), containsInAnyOrder("/a"));
 
         lookup = new HybridPropertyIndexLookup(indexPath, builder.getNodeState(),
                 "/content", true);
         paths = lookup.query(filter, propertyName,
                 filter.getPropertyRestriction(propertyName));
 
-        assertThat(CollectionUtils.toList(paths), containsInAnyOrder("/content/a"));
+        assertThat(ListUtils.toList(paths), containsInAnyOrder("/content/a"));
     }
 
     private void propertyUpdated(String nodePath, String propertyRelativeName, String value){
@@ -156,7 +156,7 @@ public class HybridPropertyIndexLookupTest {
         HybridPropertyIndexLookup lookup = new HybridPropertyIndexLookup(indexPath, builder.getNodeState());
         Iterable<String> paths = lookup.query(filter, propertyName,
                 filter.getPropertyRestriction(propertyRestrictionName));
-        return CollectionUtils.toList(paths);
+        return ListUtils.toList(paths);
     }
 
     private PropertyDefinition pd(String propName){
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/HybridPropertyIndexStorageTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/HybridPropertyIndexStorageTest.java
index dc6640ea04..68e1072088 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/HybridPropertyIndexStorageTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/HybridPropertyIndexStorageTest.java
@@ -21,7 +21,7 @@ package org.apache.jackrabbit.oak.plugins.index.lucene.property;
 import java.util.List;
 
 import org.apache.jackrabbit.oak.api.PropertyValue;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.index.lucene.util.LuceneIndexDefinitionBuilder;
 import org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition;
 import org.apache.jackrabbit.oak.plugins.index.search.PropertyDefinition;
@@ -204,7 +204,7 @@ public class HybridPropertyIndexStorageTest {
         HybridPropertyIndexLookup lookup = new HybridPropertyIndexLookup(indexPath, builder.getNodeState());
         FilterImpl filter = createFilter(root, "nt:base");
         Iterable<String> paths = lookup.query(filter, propertyName, value);
-        return CollectionUtils.toList(paths);
+        return ListUtils.toList(paths);
     }
 
     private PropertyIndexUpdateCallback newCallback(){
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/PropertyIndexCleanerTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/PropertyIndexCleanerTest.java
index 4ebc69def3..6938e13d31 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/PropertyIndexCleanerTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/PropertyIndexCleanerTest.java
@@ -25,7 +25,7 @@ import java.util.concurrent.TimeUnit;
 
 import org.apache.jackrabbit.oak.InitialContent;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.index.AsyncIndexInfo;
 import org.apache.jackrabbit.oak.plugins.index.AsyncIndexInfoService;
 import org.apache.jackrabbit.oak.plugins.index.lucene.property.PropertyIndexCleaner.CleanupStats;
@@ -331,7 +331,7 @@ public class PropertyIndexCleanerTest {
         HybridPropertyIndexLookup lookup = new HybridPropertyIndexLookup(indexPath, getNode(root, indexPath));
         FilterImpl filter = FilterImpl.newTestInstance();
         Iterable<String> paths = lookup.query(filter, propertyName,   PropertyValues.newString(value));
-        return CollectionUtils.toList(paths);
+        return ListUtils.toList(paths);
     }
 
     private static class SimpleAsyncInfoService implements AsyncIndexInfoService {
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/UniqueIndexCleanerTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/UniqueIndexCleanerTest.java
index fce3c81420..cac3307268 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/UniqueIndexCleanerTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/UniqueIndexCleanerTest.java
@@ -18,7 +18,7 @@
  */
 package org.apache.jackrabbit.oak.plugins.index.lucene.property;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
 import org.junit.Test;
 
@@ -40,7 +40,7 @@ public class UniqueIndexCleanerTest {
 
         UniqueIndexCleaner cleaner = new UniqueIndexCleaner(MILLISECONDS, 1);
         cleaner.clean(builder, 10);
-        assertThat(CollectionUtils.toList(builder.getChildNodeNames()), containsInAnyOrder("a", "b"));
+        assertThat(ListUtils.toList(builder.getChildNodeNames()), containsInAnyOrder("a", "b"));
     }
 
     @Test
@@ -51,7 +51,7 @@ public class UniqueIndexCleanerTest {
         refresh();
         UniqueIndexCleaner cleaner = new UniqueIndexCleaner(MILLISECONDS, 100);
         cleaner.clean(builder, 200);
-        assertThat(CollectionUtils.toList(builder.getChildNodeNames()), containsInAnyOrder("b"));
+        assertThat(ListUtils.toList(builder.getChildNodeNames()), containsInAnyOrder("b"));
     }
 
     private void refresh(){
diff --git a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/TapeSamplingTest.java b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/TapeSamplingTest.java
index bec04cb0e6..c156f85a0f 100644
--- a/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/TapeSamplingTest.java
+++ b/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/TapeSamplingTest.java
@@ -20,7 +20,7 @@ package org.apache.jackrabbit.oak.plugins.index.lucene.util;
 
 import org.apache.jackrabbit.guava.common.collect.AbstractIterator;
 import org.apache.jackrabbit.guava.common.collect.Iterators;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.junit.Test;
 
 import java.util.Iterator;
@@ -46,7 +46,7 @@ public class TapeSamplingTest {
         List<Integer> input = range(start, end);
         TapeSampling<Integer> res = new TapeSampling<>(r, input.iterator(), input.size(), k);
 
-        List<Integer> samples = CollectionUtils.toList(res.getSamples());
+        List<Integer> samples = ListUtils.toList(res.getSamples());
         List<Integer> expected = range(end - k + 1, end);
 
         assertEquals(expected, samples);
@@ -67,7 +67,7 @@ public class TapeSamplingTest {
         List<Integer> input = range(start, end);
         TapeSampling<Integer> res = new TapeSampling<>(r, input.iterator(), input.size(), k);
 
-        List<Integer> samples = CollectionUtils.toList(res.getSamples());
+        List<Integer> samples = ListUtils.toList(res.getSamples());
         List<Integer> expected = range(start, start + k - 1);
 
         assertEquals(expected, samples);
@@ -83,7 +83,7 @@ public class TapeSamplingTest {
         List<Integer> input = range(start, end);
         TapeSampling<Integer> res = new TapeSampling<>(r, input.iterator(), input.size(), k);
 
-        List<Integer> samples = CollectionUtils.toList(res.getSamples());
+        List<Integer> samples = ListUtils.toList(res.getSamples());
         List<Integer> expected = input;
 
         assertEquals(expected, samples);
@@ -136,6 +136,6 @@ public class TapeSamplingTest {
             }
         };
 
-        return CollectionUtils.toList(iter);
+        return ListUtils.toList(iter);
     }
 }
diff --git a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/SimpleFlatFileUtil.java b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/SimpleFlatFileUtil.java
index 643eeb1fd6..f8ada86049 100644
--- a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/SimpleFlatFileUtil.java
+++ b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/SimpleFlatFileUtil.java
@@ -28,7 +28,7 @@ import java.nio.file.Files;
 import java.util.Comparator;
 import java.util.stream.StreamSupport;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.index.indexer.document.NodeStateEntry;
 import org.apache.jackrabbit.oak.plugins.document.DocumentNodeState;
 import org.apache.jackrabbit.oak.spi.state.ChildNodeEntry;
@@ -93,7 +93,7 @@ public class SimpleFlatFileUtil {
             return;
         }
         String jsonText = entryWriter.asSortedJson(e.getNodeState());
-        String line = entryWriter.toString(CollectionUtils.toList(elements(path)), jsonText);
+        String line = entryWriter.toString(ListUtils.toList(elements(path)), jsonText);
         writer.append(line);
         writer.append(LINE_SEPARATOR);
         totalLines++;
diff --git a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/SimpleNodeStateHolder.java b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/SimpleNodeStateHolder.java
index c3bac1cb8e..aa8d156530 100644
--- a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/SimpleNodeStateHolder.java
+++ b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/SimpleNodeStateHolder.java
@@ -22,7 +22,7 @@ import java.util.Collections;
 import java.util.List;
 
 import org.apache.jackrabbit.oak.commons.StringUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 
 import static org.apache.jackrabbit.oak.commons.PathUtils.elements;
 import static org.apache.jackrabbit.oak.index.indexer.document.flatfile.NodeStateEntryWriter.getPath;
@@ -32,7 +32,7 @@ public class SimpleNodeStateHolder implements NodeStateHolder{
     private final List<String> pathElements;
 
     public SimpleNodeStateHolder(String line) {
-        this.pathElements = Collections.unmodifiableList(CollectionUtils.toList(elements(getPath(line))));
+        this.pathElements = Collections.unmodifiableList(ListUtils.toList(elements(getPath(line))));
         this.line = line;
     }
 
diff --git a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/StateInBytesHolder.java b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/StateInBytesHolder.java
index 31694ce551..c0defbc291 100644
--- a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/StateInBytesHolder.java
+++ b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/StateInBytesHolder.java
@@ -23,7 +23,7 @@ import java.util.Collections;
 import java.util.List;
 
 import org.apache.jackrabbit.oak.commons.StringUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 
 import static org.apache.jackrabbit.oak.commons.PathUtils.elements;
 
@@ -32,7 +32,7 @@ class StateInBytesHolder implements NodeStateHolder {
     private final byte[] content;
 
     public StateInBytesHolder(String path, String line) {
-        this.pathElements = Collections.unmodifiableList(CollectionUtils.toList(elements(path)));
+        this.pathElements = Collections.unmodifiableList(ListUtils.toList(elements(path)));
         this.content = line.getBytes(StandardCharsets.UTF_8);
     }
 
diff --git a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/run/cli/OakHelpFormatter.java b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/run/cli/OakHelpFormatter.java
index 59ebfdee66..e2d48b7fd7 100644
--- a/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/run/cli/OakHelpFormatter.java
+++ b/oak-run-commons/src/main/java/org/apache/jackrabbit/oak/run/cli/OakHelpFormatter.java
@@ -28,13 +28,12 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
-
 import joptsimple.BuiltinHelpFormatter;
 import joptsimple.HelpFormatter;
 import joptsimple.OptionDescriptor;
 import joptsimple.OptionSpec;
 
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.jetbrains.annotations.Nullable;
 
 public class OakHelpFormatter implements HelpFormatter {
@@ -46,7 +45,7 @@ public class OakHelpFormatter implements HelpFormatter {
 
     public OakHelpFormatter(Iterable<OptionsBean> optionBeans, @Nullable String commandName,
                             @Nullable String summary,@Nullable String connectionString) {
-        this.optionBeans = CollectionUtils.toList(optionBeans);
+        this.optionBeans = ListUtils.toList(optionBeans);
         this.commandName = commandName;
         this.summary = summary;
         this.connectionString = connectionString;
diff --git a/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/ChildNodeStateProviderTest.java b/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/ChildNodeStateProviderTest.java
index d558622065..24b8b18598 100644
--- a/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/ChildNodeStateProviderTest.java
+++ b/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/ChildNodeStateProviderTest.java
@@ -26,7 +26,7 @@ import java.util.Set;
 import org.apache.jackrabbit.guava.common.collect.Iterables;
 import org.apache.jackrabbit.guava.common.collect.Iterators;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.index.indexer.document.NodeStateEntry;
 import org.apache.jackrabbit.oak.spi.state.NodeState;
 import org.junit.Test;
@@ -60,17 +60,17 @@ public class ChildNodeStateProviderTest {
         CountingIterable<NodeStateEntry> citr = createList(preferred, asList("/a", "/a/jcr:content", "/a/c", "/a/d", "/e", "/e/f", "/g", "/h"));
         ChildNodeStateProvider p = new ChildNodeStateProvider(citr, "/a", preferred);
 
-        assertEquals(asList("jcr:content", "c", "d"), CollectionUtils.toList(childNames(p.children())));
+        assertEquals(asList("jcr:content", "c", "d"), ListUtils.toList(childNames(p.children())));
         assertEquals(5, citr.getCount());
 
         citr.reset();
         p = new ChildNodeStateProvider(citr, "/e", preferred);
-        assertEquals(singletonList("f"), CollectionUtils.toList(childNames(p.children())));
+        assertEquals(singletonList("f"), ListUtils.toList(childNames(p.children())));
         assertEquals(7, citr.getCount());
 
 
         p = new ChildNodeStateProvider(citr, "/g", preferred);
-        assertEquals(emptyList(), CollectionUtils.toList(childNames(p.children())));
+        assertEquals(emptyList(), ListUtils.toList(childNames(p.children())));
     }
 
     @Test
@@ -79,22 +79,22 @@ public class ChildNodeStateProviderTest {
         CountingIterable<NodeStateEntry> citr = createList(preferred, asList("/a", "/a/b", "/a/b/c", "/a/b/c/d", "/e", "/e/f", "/g", "/h"));
         ChildNodeStateProvider p = new ChildNodeStateProvider(citr, "/a", preferred);
 
-        assertEquals(singletonList("b"), CollectionUtils.toList(childNames(p.children())));
+        assertEquals(singletonList("b"), ListUtils.toList(childNames(p.children())));
         assertEquals(5, citr.getCount());
 
         citr.reset();
         p = new ChildNodeStateProvider(citr, "/a/b", preferred);
-        assertEquals(singletonList("c"), CollectionUtils.toList(childNames(p.children())));
+        assertEquals(singletonList("c"), ListUtils.toList(childNames(p.children())));
         assertEquals(5, citr.getCount());
 
         p = new ChildNodeStateProvider(citr, "/a/b/c", preferred);
-        assertEquals(singletonList("d"), CollectionUtils.toList(childNames(p.children())));
+        assertEquals(singletonList("d"), ListUtils.toList(childNames(p.children())));
 
         p = new ChildNodeStateProvider(citr, "/a/b/c/d", preferred);
-        assertEquals(emptyList(), CollectionUtils.toList(childNames(p.children())));
+        assertEquals(emptyList(), ListUtils.toList(childNames(p.children())));
 
         p = new ChildNodeStateProvider(citr, "/h", preferred);
-        assertEquals(emptyList(), CollectionUtils.toList(childNames(p.children())));
+        assertEquals(emptyList(), ListUtils.toList(childNames(p.children())));
     }
 
     @Test
@@ -152,7 +152,7 @@ public class ChildNodeStateProviderTest {
         CountingIterable<NodeStateEntry> citr = createList(preferred, asList("/a", "/a/jcr:content", "/a/c", "/a/d", "/e", "/e/f"));
         ChildNodeStateProvider p = new ChildNodeStateProvider(citr, "/a", preferred);
 
-        assertEquals(asList("jcr:content", "c", "d"), CollectionUtils.toList(childNames(p.children())));
+        assertEquals(asList("jcr:content", "c", "d"), ListUtils.toList(childNames(p.children())));
         assertEquals(5, citr.getCount());
     }
 
@@ -163,7 +163,7 @@ public class ChildNodeStateProviderTest {
                 "/a/c", "/a/c/status","/a/d", "/e", "/e/f"));
         ChildNodeStateProvider p = new ChildNodeStateProvider(citr, "/a", preferred);
 
-        assertEquals(asList("jcr:content", "c", "d"), CollectionUtils.toList(childNames(p.children())));
+        assertEquals(asList("jcr:content", "c", "d"), ListUtils.toList(childNames(p.children())));
         assertEquals(7, citr.getCount());
     }
 
diff --git a/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/NodeStateEntryWriterTest.java b/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/NodeStateEntryWriterTest.java
index 6b7c4e8fc3..b1b8398669 100644
--- a/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/NodeStateEntryWriterTest.java
+++ b/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/NodeStateEntryWriterTest.java
@@ -22,18 +22,16 @@ import java.util.Arrays;
 import java.util.List;
 
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.index.indexer.document.NodeStateEntry;
 import org.apache.jackrabbit.oak.index.indexer.document.NodeStateEntry.NodeStateEntryBuilder;
 import org.apache.jackrabbit.oak.spi.blob.BlobStore;
 import org.apache.jackrabbit.oak.spi.blob.MemoryBlobStore;
 import org.apache.jackrabbit.oak.spi.state.EqualsDiff;
 import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
-import org.apache.jackrabbit.oak.spi.state.NodeState;
 import org.junit.Test;
 
 import static org.apache.jackrabbit.oak.commons.PathUtils.elements;
-import static org.apache.jackrabbit.oak.index.indexer.document.flatfile.NodeStateEntryWriter.getPath;
 import static org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.EMPTY_NODE;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
@@ -111,7 +109,7 @@ public class NodeStateEntryWriterTest {
         NodeStateEntry e1 = new NodeStateEntryBuilder(b1.getNodeState(), "/a/b/c/d").build();
 
         String json = nw.asJson(e1.getNodeState());
-        List<String> pathElements = CollectionUtils.toList(elements(e1.getPath()));
+        List<String> pathElements = ListUtils.toList(elements(e1.getPath()));
 
         String line = nw.toString(pathElements, json);
 
@@ -131,7 +129,7 @@ public class NodeStateEntryWriterTest {
         NodeStateEntry e1 = new NodeStateEntryBuilder(b1.getNodeState(), "/").build();
 
         String json = nw.asJson(e1.getNodeState());
-        List<String> pathElements = CollectionUtils.toList(elements(e1.getPath()));
+        List<String> pathElements = ListUtils.toList(elements(e1.getPath()));
 
         String line = nw.toString(pathElements, json);
 
@@ -153,9 +151,9 @@ public class NodeStateEntryWriterTest {
         b.setProperty("foo1", "bar1");
         String json2 = nw.asJson(b.getNodeState());
 
-        String line1 = nw.toString(CollectionUtils.toList(elements("/")), json1);
-        String line2 = nw.toString(CollectionUtils.toList(elements("/sub-node")), json1);
-        String line3 = nw.toString(CollectionUtils.toList(elements("/sub-node")), json2);
+        String line1 = nw.toString(ListUtils.toList(elements("/")), json1);
+        String line2 = nw.toString(ListUtils.toList(elements("/sub-node")), json1);
+        String line3 = nw.toString(ListUtils.toList(elements("/sub-node")), json2);
 
         NodeStateEntryReader nr = new NodeStateEntryReader(blobStore);
 
diff --git a/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/TestUtils.java b/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/TestUtils.java
index 66d831e8c6..a34ddcf5b5 100644
--- a/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/TestUtils.java
+++ b/oak-run-commons/src/test/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/TestUtils.java
@@ -19,7 +19,7 @@
 package org.apache.jackrabbit.oak.index.indexer.document.flatfile;
 
 import org.apache.jackrabbit.guava.common.collect.Iterables;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.index.indexer.document.NodeStateEntry;
 import org.apache.jackrabbit.oak.index.indexer.document.NodeStateEntry.NodeStateEntryBuilder;
 import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
@@ -51,7 +51,7 @@ public class TestUtils {
 
     static List<String> sortPaths(List<String> paths, Comparator<Iterable<String>> comparator) {
         List<Iterable<String>> copy = paths.stream()
-                .map(p -> CollectionUtils.toList(elements(p)))
+                .map(p -> ListUtils.toList(elements(p)))
                 .sorted(comparator)
                 .collect(toList());
         return copy.stream().map(e -> "/" + String.join("/", e)).collect(toList());
diff --git a/oak-run/src/main/java/org/apache/jackrabbit/oak/explorer/AbstractSegmentTarExplorerBackend.java b/oak-run/src/main/java/org/apache/jackrabbit/oak/explorer/AbstractSegmentTarExplorerBackend.java
index a8cdde0056..5665ab6bf4 100644
--- a/oak-run/src/main/java/org/apache/jackrabbit/oak/explorer/AbstractSegmentTarExplorerBackend.java
+++ b/oak-run/src/main/java/org/apache/jackrabbit/oak/explorer/AbstractSegmentTarExplorerBackend.java
@@ -21,7 +21,7 @@ package org.apache.jackrabbit.oak.explorer;
 import org.apache.jackrabbit.guava.common.collect.Iterators;
 import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.api.PropertyState;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.segment.RecordId;
 import org.apache.jackrabbit.oak.segment.SegmentBlob;
 import org.apache.jackrabbit.oak.segment.SegmentId;
@@ -85,7 +85,7 @@ public abstract class AbstractSegmentTarExplorerBackend implements ExplorerBacke
                     entry -> entry.getRevision());
 
             try {
-                revs = CollectionUtils.toList(revisionIterator);
+                revs = ListUtils.toList(revisionIterator);
             } finally {
                 journalReader.close();
             }
diff --git a/oak-run/src/main/java/org/apache/jackrabbit/oak/explorer/NodeStoreTree.java b/oak-run/src/main/java/org/apache/jackrabbit/oak/explorer/NodeStoreTree.java
index 9ed539fbe2..733b64adcd 100644
--- a/oak-run/src/main/java/org/apache/jackrabbit/oak/explorer/NodeStoreTree.java
+++ b/oak-run/src/main/java/org/apache/jackrabbit/oak/explorer/NodeStoreTree.java
@@ -56,6 +56,7 @@ import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.state.ChildNodeEntry;
 import org.apache.jackrabbit.oak.spi.state.NodeState;
 
@@ -707,7 +708,7 @@ class NodeStoreTree extends JPanel implements TreeSelectionListener, Closeable {
         }
         Long[] s = {0L, 0L};
 
-        List<String> names = CollectionUtils.toList(ns.getChildNodeNames());
+        List<String> names = ListUtils.toList(ns.getChildNodeNames());
 
         if (names.contains("root")) {
             List<String> temp = new ArrayList<>();
diff --git a/oak-run/src/test/java/org/apache/jackrabbit/oak/index/ReindexIT.java b/oak-run/src/test/java/org/apache/jackrabbit/oak/index/ReindexIT.java
index 15e0119f5c..74bc528e9d 100644
--- a/oak-run/src/test/java/org/apache/jackrabbit/oak/index/ReindexIT.java
+++ b/oak-run/src/test/java/org/apache/jackrabbit/oak/index/ReindexIT.java
@@ -23,7 +23,7 @@ import org.apache.jackrabbit.guava.common.io.Files;
 import org.apache.commons.io.output.ByteArrayOutputStream;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.json.JsopDiff;
 import org.apache.jackrabbit.oak.plugins.index.IndexConstants;
 import org.apache.jackrabbit.oak.plugins.index.IndexPathService;
@@ -361,7 +361,7 @@ public class ReindexIT extends LuceneAbstractIndexCommandTest {
         assertThat(explain, containsString("/oak:index/barIndex"));
 
         IndexPathService idxPathService = new IndexPathServiceImpl(fixture2.getNodeStore());
-        List<String> indexPaths = CollectionUtils.toList(idxPathService.getIndexPaths());
+        List<String> indexPaths = ListUtils.toList(idxPathService.getIndexPaths());
 
         assertThat(indexPaths, hasItem("/oak:index/nodetype"));
         assertThat(indexPaths, hasItem("/oak:index/barIndex"));
diff --git a/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/Aggregate.java b/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/Aggregate.java
index 69ce99079f..fe6e240bc8 100644
--- a/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/Aggregate.java
+++ b/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/Aggregate.java
@@ -29,7 +29,7 @@ import java.util.regex.Pattern;
 
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.index.search.util.ConfigUtil;
 import org.apache.jackrabbit.oak.plugins.memory.MemoryChildNodeEntry;
 import org.apache.jackrabbit.oak.spi.state.ChildNodeEntry;
@@ -342,7 +342,7 @@ public class Aggregate {
         }
 
         public boolean matches(String nodePath) {
-            List<String> pathElements = CollectionUtils.toList(PathUtils.elements(nodePath));
+            List<String> pathElements = ListUtils.toList(PathUtils.elements(nodePath));
             if (pathElements.size() != elements.length){
                 return false;
             }
diff --git a/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/PropertyDefinition.java b/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/PropertyDefinition.java
index 04eb55dd3c..dea29cb0e7 100644
--- a/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/PropertyDefinition.java
+++ b/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/PropertyDefinition.java
@@ -31,7 +31,7 @@ import static org.apache.jackrabbit.oak.plugins.index.search.util.ConfigUtil.get
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.index.property.ValuePattern;
 import org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition.IndexingRule;
 import org.apache.jackrabbit.oak.plugins.index.search.util.FunctionIndexProcessor;
@@ -306,7 +306,7 @@ public class PropertyDefinition {
         if (FulltextIndexConstants.REGEX_ALL_PROPS.equals(path)) {
             return EMPTY_ANCESTORS;
         } else {
-            return toArray(CollectionUtils.toList(elements(PathUtils.getParentPath(path))), String.class);
+            return toArray(ListUtils.toList(elements(PathUtils.getParentPath(path))), String.class);
         }
     }
 
diff --git a/oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/OrderByCommonTest.java b/oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/OrderByCommonTest.java
index ceef852fc0..4322ca998c 100644
--- a/oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/OrderByCommonTest.java
+++ b/oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/OrderByCommonTest.java
@@ -22,7 +22,7 @@ import org.apache.jackrabbit.oak.api.ResultRow;
 import org.apache.jackrabbit.oak.api.Tree;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.index.search.FulltextIndexConstants;
 import org.apache.jackrabbit.oak.plugins.index.search.util.IndexDefinitionBuilder;
 import org.apache.jackrabbit.oak.query.AbstractQueryTest;
@@ -347,7 +347,7 @@ public abstract class OrderByCommonTest extends AbstractQueryTest {
 
             query = "/jcr:root/test/* order by fn:name() descending option(index tag fnName)";
             assertXpathPlan(query, "/oak:index/fnName");
-            assertEquals(CollectionUtils.reverse(expected), executeQuery(query, XPATH));
+            assertEquals(ListUtils.reverse(expected), executeQuery(query, XPATH));
 
             // order by fn:name() although function index is on "name()"
             query = "/jcr:root/test/* order by fn:name() option(index tag name)";
@@ -360,7 +360,7 @@ public abstract class OrderByCommonTest extends AbstractQueryTest {
 
             query = "/jcr:root/test/* order by fn:name() descending option(index tag name)";
             assertXpathPlan(query, "/oak:index/name");
-            assertEquals(CollectionUtils.reverse(expected), executeQuery(query, XPATH));
+            assertEquals(ListUtils.reverse(expected), executeQuery(query, XPATH));
         });
     }
 
@@ -421,7 +421,7 @@ public abstract class OrderByCommonTest extends AbstractQueryTest {
 
             query = "/jcr:root/test/* order by fn:local-name() descending option(index tag fnLocalName)";
             assertXpathPlan(query, "/oak:index/fnLocalName");
-            assertEquals(CollectionUtils.reverse(expected), executeQuery(query, XPATH));
+            assertEquals(ListUtils.reverse(expected), executeQuery(query, XPATH));
 
             // order by fn:name() although function index is on "name()"
             query = "/jcr:root/test/* order by fn:local-name() option(index tag localName)";
@@ -434,7 +434,7 @@ public abstract class OrderByCommonTest extends AbstractQueryTest {
 
             query = "/jcr:root/test/* order by fn:local-name() descending option(index tag localName)";
             assertXpathPlan(query, "/oak:index/localName");
-            assertEquals(CollectionUtils.reverse(expected), executeQuery(query, XPATH));
+            assertEquals(ListUtils.reverse(expected), executeQuery(query, XPATH));
         });
     }
 
diff --git a/oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/search/util/TapeSamplingTest.java b/oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/search/util/TapeSamplingTest.java
index 3d289a988d..12477cab12 100644
--- a/oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/search/util/TapeSamplingTest.java
+++ b/oak-search/src/test/java/org/apache/jackrabbit/oak/plugins/index/search/util/TapeSamplingTest.java
@@ -20,7 +20,7 @@ package org.apache.jackrabbit.oak.plugins.index.search.util;
 
 import org.apache.jackrabbit.guava.common.collect.AbstractIterator;
 import org.apache.jackrabbit.guava.common.collect.Iterators;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.junit.Test;
 
 import java.util.Iterator;
@@ -46,7 +46,7 @@ public class TapeSamplingTest {
         List<Integer> input = range(start, end);
         TapeSampling<Integer> res = new TapeSampling<>(r, input.iterator(), input.size(), k);
 
-        List<Integer> samples = CollectionUtils.toList(res.getSamples());
+        List<Integer> samples = ListUtils.toList(res.getSamples());
         List<Integer> expected = range(end - k + 1, end);
 
         assertEquals(expected, samples);
@@ -67,7 +67,7 @@ public class TapeSamplingTest {
         List<Integer> input = range(start, end);
         TapeSampling<Integer> res = new TapeSampling<>(r, input.iterator(), input.size(), k);
 
-        List<Integer> samples = CollectionUtils.toList(res.getSamples());
+        List<Integer> samples = ListUtils.toList(res.getSamples());
         List<Integer> expected = range(start, start + k - 1);
 
         assertEquals(expected, samples);
@@ -83,7 +83,7 @@ public class TapeSamplingTest {
         List<Integer> input = range(start, end);
         TapeSampling<Integer> res = new TapeSampling<>(r, input.iterator(), input.size(), k);
 
-        List<Integer> samples = CollectionUtils.toList(res.getSamples());
+        List<Integer> samples = ListUtils.toList(res.getSamples());
         List<Integer> expected = input;
 
         assertEquals(expected, samples);
@@ -136,6 +136,6 @@ public class TapeSamplingTest {
             }
         };
 
-        return CollectionUtils.toList(iter);
+        return ListUtils.toList(iter);
     }
 }
diff --git a/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/AzureJournalFile.java b/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/AzureJournalFile.java
index 086784a264..497e9506a7 100644
--- a/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/AzureJournalFile.java
+++ b/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/AzureJournalFile.java
@@ -23,7 +23,7 @@ import com.microsoft.azure.storage.blob.CloudBlobDirectory;
 import com.microsoft.azure.storage.blob.ListBlobItem;
 import com.microsoft.azure.storage.blob.DeleteSnapshotsOption;
 import com.microsoft.azure.storage.blob.BlobRequestOptions;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.segment.azure.util.AzureRequestOptions;
 import org.apache.jackrabbit.oak.segment.azure.util.CaseInsensitiveKeysMapAccess;
 import org.apache.jackrabbit.oak.segment.remote.WriteAccessController;
@@ -218,7 +218,7 @@ public class AzureJournalFile implements JournalFile {
             }
             int firstBlockSize = Math.min(lineLimit - lineCount, lines.size());
             List<String> firstBlock = lines.subList(0, firstBlockSize);
-            List<List<String>> remainingBlocks = CollectionUtils.partitionList(lines.subList(firstBlockSize, lines.size()), lineLimit);
+            List<List<String>> remainingBlocks = ListUtils.partitionList(lines.subList(firstBlockSize, lines.size()), lineLimit);
             List<List<String>> allBlocks = new ArrayList<>();
             allBlocks.addAll(firstBlock.isEmpty() ? List.of() : List.of(firstBlock));
             allBlocks.addAll(remainingBlocks);
diff --git a/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/tool/ToolUtils.java b/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/tool/ToolUtils.java
index cbf206b1cd..2746fdfe46 100644
--- a/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/tool/ToolUtils.java
+++ b/oak-segment-azure/src/main/java/org/apache/jackrabbit/oak/segment/azure/tool/ToolUtils.java
@@ -38,7 +38,7 @@ import java.util.Objects;
 import java.util.concurrent.TimeUnit;
 
 import org.apache.jackrabbit.oak.commons.Buffer;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.segment.azure.AzurePersistence;
 import org.apache.jackrabbit.oak.segment.azure.AzureStorageCredentialManager;
 import org.apache.jackrabbit.oak.segment.azure.AzureUtilities;
@@ -197,7 +197,7 @@ public class ToolUtils {
                 try (JournalReader journalReader = new JournalReader(journal)) {
                     Iterator<String> revisionIterator = Iterators.transform(journalReader,
                          entry -> entry.getRevision());
-                    return CollectionUtils.toList(revisionIterator);
+                    return ListUtils.toList(revisionIterator);
                 } catch (Exception e) {
                     log.error("Error while reading from journal file");
                     e.printStackTrace();
diff --git a/oak-segment-azure/src/test/java/org/apache/jackrabbit/oak/segment/azure/AzureJournalFileTest.java b/oak-segment-azure/src/test/java/org/apache/jackrabbit/oak/segment/azure/AzureJournalFileTest.java
index 8f2bee006e..5e2379c1c4 100644
--- a/oak-segment-azure/src/test/java/org/apache/jackrabbit/oak/segment/azure/AzureJournalFileTest.java
+++ b/oak-segment-azure/src/test/java/org/apache/jackrabbit/oak/segment/azure/AzureJournalFileTest.java
@@ -23,7 +23,7 @@ import com.microsoft.azure.storage.blob.ListBlobItem;
 import java.util.stream.IntStream;
 import org.apache.commons.lang3.time.StopWatch;
 import org.apache.jackrabbit.oak.blob.cloud.azure.blobstorage.AzuriteDockerRule;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.segment.remote.WriteAccessController;
 import org.apache.jackrabbit.oak.segment.spi.persistence.JournalFileReader;
 import org.apache.jackrabbit.oak.segment.spi.persistence.JournalFileWriter;
@@ -129,7 +129,7 @@ public class AzureJournalFileTest {
         }
 
         List<String> entries = readEntriesFromJournal();
-        assertEquals(lines, CollectionUtils.reverse(entries));
+        assertEquals(lines, ListUtils.reverse(entries));
     }
 
     @Test
@@ -191,7 +191,7 @@ public class AzureJournalFileTest {
 
     private void assertJournalEntriesCount(int index) throws IOException {
         List<String> entries = readEntriesFromJournal();
-        assertEquals(buildLines(0, index), CollectionUtils.reverse(entries));
+        assertEquals(buildLines(0, index), ListUtils.reverse(entries));
     }
 
     @NotNull
diff --git a/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/DefaultSegmentWriter.java b/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/DefaultSegmentWriter.java
index 83574590ba..b1b641174b 100644
--- a/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/DefaultSegmentWriter.java
+++ b/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/DefaultSegmentWriter.java
@@ -61,7 +61,7 @@ import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.Buffer;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.conditions.Validate;
 import org.apache.jackrabbit.oak.plugins.blob.BlobStoreBlob;
 import org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState;
@@ -456,7 +456,7 @@ public class DefaultSegmentWriter implements SegmentWriter {
             List<RecordId> thisLevel = list;
             while (thisLevel.size() > 1) {
                 List<RecordId> nextLevel = new ArrayList<>();
-                for (List<RecordId> bucket : CollectionUtils.partitionList(thisLevel, ListRecord.LEVEL_SIZE)) {
+                for (List<RecordId> bucket : ListUtils.partitionList(thisLevel, ListRecord.LEVEL_SIZE)) {
                     if (bucket.size() > 1) {
                         nextLevel.add(writeListBucket(bucket));
                     } else {
diff --git a/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/TarFiles.java b/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/TarFiles.java
index 9667291a7c..c05a670e7f 100644
--- a/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/TarFiles.java
+++ b/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/TarFiles.java
@@ -47,7 +47,7 @@ import org.apache.jackrabbit.guava.common.collect.Iterables;
 
 import org.apache.jackrabbit.oak.api.IllegalRepositoryStateException;
 import org.apache.jackrabbit.oak.commons.Buffer;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.conditions.Validate;
 import org.apache.jackrabbit.oak.segment.file.FileReaper;
 import org.apache.jackrabbit.oak.segment.spi.monitor.FileStoreMonitor;
@@ -496,7 +496,7 @@ public class TarFiles implements Closeable {
             lock.readLock().unlock();
         }
 
-        return String.format("TarFiles{readers=%s,writer=%s}", CollectionUtils.toList(iterable(head)), w);
+        return String.format("TarFiles{readers=%s,writer=%s}", ListUtils.toList(iterable(head)), w);
     }
 
     public long size() {
diff --git a/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/tool/Diff.java b/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/tool/Diff.java
index 92ef575948..6b0f401453 100644
--- a/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/tool/Diff.java
+++ b/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/tool/Diff.java
@@ -26,7 +26,7 @@ import java.io.PrintWriter;
 import java.util.Iterator;
 import java.util.List;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.segment.RecordId;
 import org.apache.jackrabbit.oak.segment.SegmentIdProvider;
 import org.apache.jackrabbit.oak.segment.SegmentNotFoundException;
@@ -281,7 +281,7 @@ public class Diff {
                 List<String> revDiffs = revs.subList(Math.min(s, e), Math.max(s, e) + 1);
                 if (s > e) {
                     // reverse list
-                    revDiffs = CollectionUtils.reverse(revDiffs);
+                    revDiffs = ListUtils.reverse(revDiffs);
                 }
                 if (revDiffs.size() < 2) {
                     System.out.println("Nothing to diff: " + revDiffs);
diff --git a/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/tool/Utils.java b/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/tool/Utils.java
index f3d16ddd7d..71503f3e0e 100644
--- a/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/tool/Utils.java
+++ b/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/tool/Utils.java
@@ -26,7 +26,7 @@ import java.util.Iterator;
 import java.util.List;
 
 import org.apache.jackrabbit.guava.common.collect.Iterators;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.json.JsonObject;
 import org.apache.jackrabbit.oak.commons.json.JsopTokenizer;
 import org.apache.jackrabbit.oak.segment.SegmentId;
@@ -76,7 +76,7 @@ public final class Utils {
             try (JournalReader journalReader = new JournalReader(journal)) {
                 Iterator<String> revisionIterator = Iterators.transform(journalReader,
                         entry -> entry.getRevision());
-                return CollectionUtils.toList(revisionIterator);
+                return ListUtils.toList(revisionIterator);
             } catch (Exception e) {
                 e.printStackTrace();
             }
diff --git a/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentBufferWriterTest.java b/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentBufferWriterTest.java
index a1bec72374..6a36dc5ff5 100644
--- a/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentBufferWriterTest.java
+++ b/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentBufferWriterTest.java
@@ -26,7 +26,7 @@ import java.util.Collections;
 import java.util.List;
 import java.util.Optional;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState;
 import org.apache.jackrabbit.oak.segment.file.FileStore;
 import org.apache.jackrabbit.oak.segment.file.ReadOnlyFileStore;
@@ -55,7 +55,7 @@ public class SegmentBufferWriterTest {
             // init
         }
         try (ReadOnlyFileStore store = openReadOnlyFileStore()) {
-            before = CollectionUtils.toList(store.getSegmentIds());
+            before = ListUtils.toList(store.getSegmentIds());
         }
 
         try (FileStore store = openFileStore()) {
@@ -65,7 +65,7 @@ public class SegmentBufferWriterTest {
         List<SegmentId> after;
 
         try (ReadOnlyFileStore store = openReadOnlyFileStore()) {
-            after = CollectionUtils.toList(store.getSegmentIds());
+            after = ListUtils.toList(store.getSegmentIds());
         }
 
         assertEquals(before, after);
@@ -79,7 +79,7 @@ public class SegmentBufferWriterTest {
             // init
         }
         try (ReadOnlyFileStore store = openReadOnlyFileStore()) {
-            before = CollectionUtils.toList(store.getSegmentIds());
+            before = ListUtils.toList(store.getSegmentIds());
         }
 
         try (FileStore store = openFileStore()) {
@@ -91,7 +91,7 @@ public class SegmentBufferWriterTest {
         List<SegmentId> after;
 
         try (ReadOnlyFileStore store = openReadOnlyFileStore()) {
-            after = CollectionUtils.toList(store.getSegmentIds());
+            after = ListUtils.toList(store.getSegmentIds());
         }
 
         assertNotEquals(before, after);
diff --git a/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentDataStoreBlobGCIT.java b/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentDataStoreBlobGCIT.java
index 51a4e0a4c2..61af9507fd 100644
--- a/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentDataStoreBlobGCIT.java
+++ b/oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/SegmentDataStoreBlobGCIT.java
@@ -49,6 +49,7 @@ import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.commons.FileIOUtils;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.junit.LogCustomizer;
 import org.apache.jackrabbit.oak.plugins.blob.BlobReferenceRetriever;
 import org.apache.jackrabbit.oak.plugins.blob.GarbageCollectorFileState;
@@ -245,7 +246,7 @@ public class SegmentDataStoreBlobGCIT {
             NodeBuilder n = a.child("cspecial");
             n.child(specialCharSets.get(i)).setProperty("x", b);
             Iterator<String> idIter = blobStore.resolveChunks(b.getBlobId());
-            set.addAll(CollectionUtils.toList(idIter));
+            set.addAll(ListUtils.toList(idIter));
         }
         nodeStore.merge(a, EmptyHook.INSTANCE, CommitInfo.EMPTY);
         return set;
diff --git a/oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/InitialContentMigrator.java b/oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/InitialContentMigrator.java
index 9ea1bc75fd..b444f30c33 100644
--- a/oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/InitialContentMigrator.java
+++ b/oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/InitialContentMigrator.java
@@ -19,7 +19,7 @@ package org.apache.jackrabbit.oak.composite;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.migration.FilteringNodeState;
 import org.apache.jackrabbit.oak.plugins.migration.report.LoggingReporter;
 import org.apache.jackrabbit.oak.plugins.migration.report.ReportingNodeState;
@@ -181,7 +181,7 @@ public class InitialContentMigrator {
             if (temp == null) {
                 continue;
             }
-            List<String> tempValues = CollectionUtils.toList(temp.getValue(Type.STRINGS));
+            List<String> tempValues = ListUtils.toList(temp.getValue(Type.STRINGS));
             for (Map.Entry<String, String> sToD : checkpointSegmentToDoc.entrySet()) {
                 if (tempValues.contains(sToD.getKey())) {
                     tempValues.set(tempValues.indexOf(sToD.getKey()), sToD.getValue());
diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/Commit.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/Commit.java
index b5693d0a93..b57af7fee4 100644
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/Commit.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/Commit.java
@@ -31,7 +31,7 @@ import java.util.TreeSet;
 import java.util.concurrent.TimeUnit;
 
 import org.apache.jackrabbit.guava.common.collect.Iterables;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.json.JsopStream;
 import org.apache.jackrabbit.oak.commons.json.JsopWriter;
 import org.apache.jackrabbit.oak.plugins.document.UpdateOp.Key;
@@ -408,7 +408,7 @@ public class Commit {
                 success = true;
             } else {
                 int batchSize = nodeStore.getCreateOrUpdateBatchSize();
-                for (List<UpdateOp> updates : CollectionUtils.partitionList(changedNodes, batchSize)) {
+                for (List<UpdateOp> updates : ListUtils.partitionList(changedNodes, batchSize)) {
                     List<NodeDocument> oldDocs = store.createOrUpdate(NODES, updates);
                     checkConflicts(oldDocs, updates);
                     checkSplitCandidate(oldDocs);
diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStore.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStore.java
index b72ff4d434..025e883123 100644
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStore.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStore.java
@@ -82,6 +82,7 @@ import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.cache.CacheStats;
 import org.apache.jackrabbit.oak.commons.PerfLogger;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.conditions.Validate;
 import org.apache.jackrabbit.oak.commons.json.JsopStream;
 import org.apache.jackrabbit.oak.commons.json.JsopWriter;
@@ -1959,7 +1960,7 @@ public final class DocumentNodeStore
         // reset each branch commit in reverse order
         Map<Path, UpdateOp> operations = new HashMap<>();
         AtomicReference<Revision> currentRev = new AtomicReference<>();
-        for (Revision r : CollectionUtils.reverse(revs)) {
+        for (Revision r : ListUtils.reverse(revs)) {
             operations.clear();
             Revision previous = currentRev.getAndSet(r);
             if (previous == null) {
diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStoreException.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStoreException.java
index 454a7a451d..91900285a5 100644
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStoreException.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStoreException.java
@@ -16,11 +16,10 @@
  */
 package org.apache.jackrabbit.oak.plugins.document;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
-
 import static java.util.Collections.emptyList;
 import static java.util.Objects.requireNonNull;
 
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 
@@ -171,7 +170,7 @@ public class DocumentStoreException extends RuntimeException {
                                                                   Iterable<String> ids) {
         String msg = message;
         if (ids.iterator().hasNext()) {
-            msg += " " + CollectionUtils.toList(ids);
+            msg += " " + ListUtils.toList(ids);
         }
         if (t instanceof DocumentStoreException) {
             return (DocumentStoreException) t;
diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/Rollback.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/Rollback.java
index ac550d34ad..95b98ba12d 100644
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/Rollback.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/Rollback.java
@@ -20,7 +20,7 @@ import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.jetbrains.annotations.NotNull;
 
 import static java.util.Objects.requireNonNull;
@@ -95,7 +95,7 @@ class Rollback {
             reverse.setNew(false);
             reverseOps.add(reverse);
         }
-        for (List<UpdateOp> ops : CollectionUtils.partitionList(reverseOps, batchSize)) {
+        for (List<UpdateOp> ops : ListUtils.partitionList(reverseOps, batchSize)) {
             store.createOrUpdate(NODES, ops);
         }
         removeCollisionMarker(store, commitRootId);
diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/bundlor/BundlorUtils.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/bundlor/BundlorUtils.java
index f2d772c666..ac596de812 100644
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/bundlor/BundlorUtils.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/bundlor/BundlorUtils.java
@@ -29,7 +29,7 @@ import java.util.function.Predicate;
 
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.state.NodeState;
 import org.jetbrains.annotations.NotNull;
 
@@ -86,7 +86,7 @@ public final class BundlorUtils {
         int expectedDepth = matcher.depth() + 1;
 
         for (String key : keys){
-            List<String> elements = CollectionUtils.toList(PathUtils.elements(key));
+            List<String> elements = ListUtils.toList(PathUtils.elements(key));
             int depth = elements.size() - 1;
 
             if (depth == expectedDepth
diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/bundlor/Include.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/bundlor/Include.java
index b007615617..1ec635328d 100644
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/bundlor/Include.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/bundlor/Include.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 
 import static org.apache.jackrabbit.guava.common.base.Preconditions.checkElementIndex;
 
@@ -53,7 +53,7 @@ public class Include {
     private final String pattern;
 
     public Include(String pattern){
-        List<String> pathElements = CollectionUtils.toList(PathUtils.elements(pattern));
+        List<String> pathElements = ListUtils.toList(PathUtils.elements(pattern));
         List<String> elementList = new ArrayList<>(pathElements.size());
         Directive directive = Directive.NONE;
         for (int i = 0; i < pathElements.size(); i++) {
diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
index e366af793c..1b9e7f0cc0 100644
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
@@ -62,6 +62,7 @@ import org.apache.jackrabbit.guava.common.util.concurrent.UncheckedExecutionExce
 import org.apache.jackrabbit.oak.cache.CacheStats;
 import org.apache.jackrabbit.oak.cache.CacheValue;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.Collection;
 import org.apache.jackrabbit.oak.plugins.document.Document;
 import org.apache.jackrabbit.oak.plugins.document.DocumentStore;
@@ -923,7 +924,7 @@ public class MongoDocumentStore implements DocumentStore {
         MongoCollection<BasicDBObject> dbCollection = getDBCollection(collection);
         Stopwatch watch = startWatch();
         try {
-            for(List<String> keyBatch : CollectionUtils.partitionList(keys, IN_CLAUSE_BATCH_SIZE)){
+            for(List<String> keyBatch : ListUtils.partitionList(keys, IN_CLAUSE_BATCH_SIZE)){
                 Bson query = Filters.in(Document.ID, keyBatch);
                 try {
                     execute(session -> {
@@ -1243,7 +1244,7 @@ public class MongoDocumentStore implements DocumentStore {
                     // in bulk mode wouldn't result in any performance gain
                     break;
                 }
-                for (List<UpdateOp> partition : CollectionUtils.partitionList(new ArrayList<>(operationsToCover.values()), bulkSize)) {
+                for (List<UpdateOp> partition : ListUtils.partitionList(new ArrayList<>(operationsToCover.values()), bulkSize)) {
                     Map<UpdateOp, T> successfulUpdates = bulkModify(collection, partition, oldDocs);
                     results.putAll(successfulUpdates);
                     operationsToCover.values().removeAll(successfulUpdates.keySet());
@@ -1341,7 +1342,7 @@ public class MongoDocumentStore implements DocumentStore {
                     // in bulk mode wouldn't result in any performance gain
                     break;
                 }
-                for (List<UpdateOp> partition : CollectionUtils.partitionList(new ArrayList<>(operationsToCover.values()), bulkSize)) {
+                for (List<UpdateOp> partition : ListUtils.partitionList(new ArrayList<>(operationsToCover.values()), bulkSize)) {
                     Map<UpdateOp, T> successfulUpdates = bulkUpdate(collection, partition, oldDocs);
                     results.putAll(successfulUpdates);
                     operationsToCover.values().removeAll(successfulUpdates.keySet());
diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBBlobStore.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBBlobStore.java
index ecf1c81e99..ce46681d49 100644
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBBlobStore.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBBlobStore.java
@@ -45,7 +45,7 @@ import javax.sql.DataSource;
 
 import org.apache.jackrabbit.oak.commons.PerfLogger;
 import org.apache.jackrabbit.oak.commons.StringUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.blob.CachingBlobStore;
 import org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBuilder;
 import org.apache.jackrabbit.oak.plugins.document.DocumentStoreException;
@@ -551,7 +551,7 @@ public class RDBBlobStore extends CachingBlobStore implements Closeable {
     public long countDeleteChunks(List<String> chunkIds, long maxLastModifiedTime) throws Exception {
         long count = 0;
 
-        for (List<String> chunk : CollectionUtils.partitionList(chunkIds, RDBJDBCTools.MAX_IN_CLAUSE)) {
+        for (List<String> chunk : ListUtils.partitionList(chunkIds, RDBJDBCTools.MAX_IN_CLAUSE)) {
             Connection con = this.ch.getRWConnection();
             PreparedStatement prepMeta = null;
             PreparedStatement prepData = null;
diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStore.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStore.java
index e883b29fd8..a81479393c 100755
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStore.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStore.java
@@ -64,6 +64,7 @@ import javax.sql.DataSource;
 import org.apache.jackrabbit.oak.cache.CacheStats;
 import org.apache.jackrabbit.oak.cache.CacheValue;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.properties.SystemPropertySupplier;
 import org.apache.jackrabbit.oak.plugins.document.Collection;
 import org.apache.jackrabbit.oak.plugins.document.Document;
@@ -418,7 +419,7 @@ public class RDBDocumentStore implements DocumentStore {
                 break;
             }
 
-            for (List<UpdateOp> partition : CollectionUtils.partitionList(new ArrayList<>(operationsToCover.values()), CHUNKSIZE)) {
+            for (List<UpdateOp> partition : ListUtils.partitionList(new ArrayList<>(operationsToCover.values()), CHUNKSIZE)) {
                 Map<UpdateOp, T> successfulUpdates = bulkUpdate(collection, partition, oldDocs, upsert);
                 results.putAll(successfulUpdates);
                 operationsToCover.values().removeAll(successfulUpdates.keySet());
@@ -1563,7 +1564,7 @@ public class RDBDocumentStore implements DocumentStore {
         try {
 
             // try up to CHUNKSIZE ops in one transaction
-            for (List<UpdateOp> chunks : CollectionUtils.partitionList(updates, CHUNKSIZE)) {
+            for (List<UpdateOp> chunks : ListUtils.partitionList(updates, CHUNKSIZE)) {
                 List<T> docs = new ArrayList<T>();
                 for (UpdateOp update : chunks) {
                     ids.add(update.getId());
@@ -1978,7 +1979,7 @@ public class RDBDocumentStore implements DocumentStore {
     private <T extends Document> int delete(Collection<T> collection, List<String> ids) {
         int numDeleted = 0;
         RDBTableMetaData tmd = getTable(collection);
-        for (List<String> sublist : CollectionUtils.partitionList(ids, 64)) {
+        for (List<String> sublist : ListUtils.partitionList(ids, 64)) {
             Connection connection = null;
             Stopwatch watch = startWatch();
             try {
diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBC.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBC.java
index 2981ab335c..6140d83cbc 100644
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBC.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/rdb/RDBDocumentStoreJDBC.java
@@ -48,6 +48,7 @@ import java.util.Set;
 
 import org.apache.jackrabbit.oak.commons.PerfLogger;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.Document;
 import org.apache.jackrabbit.oak.plugins.document.DocumentStoreException;
 import org.apache.jackrabbit.oak.plugins.document.NodeDocument;
@@ -139,7 +140,7 @@ public class RDBDocumentStoreJDBC {
     public int delete(Connection connection, RDBTableMetaData tmd, List<String> allIds) throws SQLException {
         int count = 0;
 
-        for (List<String> ids : CollectionUtils.partitionList(allIds, RDBJDBCTools.MAX_IN_CLAUSE)) {
+        for (List<String> ids : ListUtils.partitionList(allIds, RDBJDBCTools.MAX_IN_CLAUSE)) {
             PreparedStatement stmt;
             PreparedStatementComponent inClause = RDBJDBCTools.createInStatement("ID", ids, tmd.isIdBinary());
             String sql = "delete from " + tmd.getName() + " where " + inClause.getStatementComponent();
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/BlobReferenceIteratorTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/BlobReferenceIteratorTest.java
index 3d16e380f6..602d0cfed9 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/BlobReferenceIteratorTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/BlobReferenceIteratorTest.java
@@ -26,7 +26,7 @@ import java.util.concurrent.TimeUnit;
 import com.mongodb.ReadPreference;
 
 import org.apache.jackrabbit.oak.api.Blob;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.blob.ReferencedBlob;
 import org.apache.jackrabbit.oak.plugins.document.VersionGarbageCollector.VersionGCStats;
 import org.apache.jackrabbit.oak.plugins.document.mongo.MongoTestUtils;
@@ -132,7 +132,7 @@ public class BlobReferenceIteratorTest {
             store.merge(b1, EmptyHook.INSTANCE, CommitInfo.EMPTY);
         }
 
-        List<ReferencedBlob> collectedBlobs = CollectionUtils.toList(store.getReferencedBlobsIterator());
+        List<ReferencedBlob> collectedBlobs = ListUtils.toList(store.getReferencedBlobsIterator());
         assertEquals(blobs.size(), collectedBlobs.size());
         assertEquals(new HashSet<>(blobs), new HashSet<>(collectedBlobs));
     }
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreTest.java
index d3b2bb5fde..9ce372faac 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreTest.java
@@ -99,7 +99,7 @@ import org.apache.jackrabbit.guava.common.collect.Iterables;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.json.JsopDiff;
 import org.apache.jackrabbit.oak.plugins.commit.AnnotatingConflictHandler;
 import org.apache.jackrabbit.oak.plugins.commit.ConflictHook;
@@ -1973,7 +1973,7 @@ public class DocumentNodeStoreTest {
 
         // on cluster node 2, remove of child-0 is not yet visible
         DocumentNodeState bar = asDocumentNodeState(ns2.getRoot().getChildNode("foo").getChildNode("bar"));
-        List<ChildNodeEntry> children = CollectionUtils.toList(bar.getChildNodeEntries());
+        List<ChildNodeEntry> children = ListUtils.toList(bar.getChildNodeEntries());
         assertEquals(2, Iterables.size(children));
         RevisionVector invalidate = bar.getLastRevision();
         assertNotNull(invalidate);
@@ -1990,7 +1990,7 @@ public class DocumentNodeStoreTest {
         // forget cache entry for deleted node
         ns2.invalidateNodeCache("/foo/bar/child-0", invalidate);
 
-        children = CollectionUtils.toList(ns2.getRoot().getChildNode("foo").getChildNode("bar").getChildNodeEntries());
+        children = ListUtils.toList(ns2.getRoot().getChildNode("foo").getChildNode("bar").getChildNodeEntries());
         assertEquals(1, Iterables.size(children));
     }
 
@@ -2032,13 +2032,13 @@ public class DocumentNodeStoreTest {
         merge(ns2, b2);
 
         // on cluster node 2, add of child-1 is not yet visible
-        List<ChildNodeEntry> children = CollectionUtils.toList(ns2.getRoot().getChildNode("foo").getChildNodeEntries());
+        List<ChildNodeEntry> children = ListUtils.toList(ns2.getRoot().getChildNode("foo").getChildNodeEntries());
         assertEquals(1, Iterables.size(children));
 
         // this will make changes from cluster node 1 visible
         ns2.runBackgroundOperations();
 
-        children = CollectionUtils.toList(ns2.getRoot().getChildNode("foo").getChildNodeEntries());
+        children = ListUtils.toList(ns2.getRoot().getChildNode("foo").getChildNodeEntries());
         assertEquals(2, Iterables.size(children));
     }
 
@@ -3324,7 +3324,7 @@ public class DocumentNodeStoreTest {
         assertNotNull(doc);
         long previousValue = -1;
         List<String> values = new ArrayList<>(doc.getLocalMap("p").values());
-        for (String v : CollectionUtils.reverse(values)) {
+        for (String v : ListUtils.reverse(values)) {
             long currentValue = Long.parseLong(v);
             assertEquals(previousValue + 1, currentValue);
             previousValue = currentValue;
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentSplitTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentSplitTest.java
index 9cfe93c690..fefdbaca09 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentSplitTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/DocumentSplitTest.java
@@ -31,7 +31,7 @@ import org.apache.jackrabbit.guava.common.collect.Iterators;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.UpdateOp.Key;
 import org.apache.jackrabbit.oak.plugins.document.UpdateOp.Operation;
 import org.apache.jackrabbit.oak.spi.blob.MemoryBlobStore;
@@ -351,7 +351,7 @@ public class DocumentSplitTest extends BaseDocumentMKTest {
         }
         ns.runBackgroundOperations();
         NodeDocument doc = store.find(NODES, Utils.getIdFromPath("/test/foo"));
-        List<NodeDocument> prevDocs = CollectionUtils.toList(doc.getAllPreviousDocs());
+        List<NodeDocument> prevDocs = ListUtils.toList(doc.getAllPreviousDocs());
         assertEquals(1, prevDocs.size());
         assertEquals(SplitDocType.DEFAULT_LEAF, prevDocs.get(0).getSplitDocType());
     }
@@ -374,7 +374,7 @@ public class DocumentSplitTest extends BaseDocumentMKTest {
         }
         ns.runBackgroundOperations();
         NodeDocument doc = store.find(NODES, Utils.getIdFromPath("/test/foo"));
-        List<NodeDocument> prevDocs = CollectionUtils.toList(doc.getAllPreviousDocs());
+        List<NodeDocument> prevDocs = ListUtils.toList(doc.getAllPreviousDocs());
         assertEquals(1, prevDocs.size());
         assertEquals(SplitDocType.COMMIT_ROOT_ONLY, prevDocs.get(0).getSplitDocType());
     }
@@ -396,7 +396,7 @@ public class DocumentSplitTest extends BaseDocumentMKTest {
         }
         ns.runBackgroundOperations();
         NodeDocument doc = store.find(NODES, Utils.getIdFromPath("/test/foo"));
-        List<NodeDocument> prevDocs = CollectionUtils.toList(doc.getAllPreviousDocs());
+        List<NodeDocument> prevDocs = ListUtils.toList(doc.getAllPreviousDocs());
         assertEquals(1, prevDocs.size());
 
         //Check for hasBinary
@@ -449,7 +449,7 @@ public class DocumentSplitTest extends BaseDocumentMKTest {
         assertNotNull(doc);
         assertEquals(2, doc.getPreviousRanges().size());
 
-        List<NodeDocument> prevDocs = CollectionUtils.toList(doc.getAllPreviousDocs());
+        List<NodeDocument> prevDocs = ListUtils.toList(doc.getAllPreviousDocs());
         //1 intermediate and 11 previous doc
         assertEquals(1 + 11, prevDocs.size());
         assertTrue(prevDocs.stream().anyMatch(input -> input.getSplitDocType() == SplitDocType.INTERMEDIATE));
@@ -536,7 +536,7 @@ public class DocumentSplitTest extends BaseDocumentMKTest {
 
         doc = store.find(NODES, id);
         assertNotNull(doc);
-        List<UpdateOp> splitOps = CollectionUtils.toList(doc.split(
+        List<UpdateOp> splitOps = ListUtils.toList(doc.split(
                 mk.getNodeStore(), mk.getNodeStore().getHeadRevision(),
                 NO_BINARY));
         assertEquals(2, splitOps.size());
@@ -593,7 +593,7 @@ public class DocumentSplitTest extends BaseDocumentMKTest {
 
         // must split document and create a previous document starting at
         // the second most recent revision
-        List<UpdateOp> splitOps = CollectionUtils.toList(doc.split(
+        List<UpdateOp> splitOps = ListUtils.toList(doc.split(
                 mk.getNodeStore(), mk.getNodeStore().getHeadRevision(),
                 NO_BINARY));
         assertEquals(2, splitOps.size());
@@ -626,7 +626,7 @@ public class DocumentSplitTest extends BaseDocumentMKTest {
         Revision r = valueMap.keySet().iterator().next();
         assertTrue(doc.getLocalRevisions().containsKey(r));
         // but also the previous document must contain the revision
-        List<NodeDocument> prevDocs = CollectionUtils.toList(doc.getAllPreviousDocs());
+        List<NodeDocument> prevDocs = ListUtils.toList(doc.getAllPreviousDocs());
         assertEquals(1, prevDocs.size());
         NodeDocument prev = prevDocs.get(0);
         assertTrue(prev.getLocalRevisions().containsKey(r));
@@ -660,7 +660,7 @@ public class DocumentSplitTest extends BaseDocumentMKTest {
         Revision r = valueMap.keySet().iterator().next();
         assertTrue(doc.getLocalCommitRoot().containsKey(r));
         // but also the previous document must contain the commitRoot entry
-        List<NodeDocument> prevDocs = CollectionUtils.toList(doc.getAllPreviousDocs());
+        List<NodeDocument> prevDocs = ListUtils.toList(doc.getAllPreviousDocs());
         assertEquals(1, prevDocs.size());
         NodeDocument prev = prevDocs.get(0);
         assertTrue(prev.getLocalCommitRoot().containsKey(r));
@@ -914,7 +914,7 @@ public class DocumentSplitTest extends BaseDocumentMKTest {
 
         NodeDocument foo = store.find(NODES, Utils.getIdFromPath("/foo"));
         assertNotNull(foo);
-        List<NodeDocument> prevDocs = CollectionUtils.toList(foo.getAllPreviousDocs());
+        List<NodeDocument> prevDocs = ListUtils.toList(foo.getAllPreviousDocs());
         // all but most recent value are moved to individual previous docs
         assertEquals(9, prevDocs.size());
     }
@@ -948,7 +948,7 @@ public class DocumentSplitTest extends BaseDocumentMKTest {
         // now the old binary value must be moved to a previous document
         foo = store.find(NODES, Utils.getIdFromPath("/foo"));
         assertNotNull(foo);
-        List<NodeDocument> prevDocs = CollectionUtils.toList(foo.getAllPreviousDocs());
+        List<NodeDocument> prevDocs = ListUtils.toList(foo.getAllPreviousDocs());
         assertEquals(1, prevDocs.size());
     }
 
@@ -971,7 +971,7 @@ public class DocumentSplitTest extends BaseDocumentMKTest {
 
         NodeDocument foo = store.find(NODES, Utils.getIdFromPath("/foo"));
         assertNotNull(foo);
-        List<NodeDocument> prevDocs = CollectionUtils.toList(foo.getAllPreviousDocs());
+        List<NodeDocument> prevDocs = ListUtils.toList(foo.getAllPreviousDocs());
         // must not create split documents for small binaries less 4k
         assertEquals(0, prevDocs.size());
     }
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/LastRevRecoveryRandomizedIT.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/LastRevRecoveryRandomizedIT.java
index 6d2ed9032d..18015510e6 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/LastRevRecoveryRandomizedIT.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/LastRevRecoveryRandomizedIT.java
@@ -25,7 +25,7 @@ import java.util.Random;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.memory.MemoryDocumentStore;
 import org.apache.jackrabbit.oak.spi.commit.CommitInfo;
 import org.apache.jackrabbit.oak.spi.commit.EmptyHook;
@@ -189,7 +189,7 @@ public class LastRevRecoveryRandomizedIT {
 
     private void addNode() {
         String p = choosePath();
-        List<String> elements = CollectionUtils.toList(PathUtils.elements(p));
+        List<String> elements = ListUtils.toList(PathUtils.elements(p));
         if (elements.size() > 2) {
             elements = elements.subList(1, elements.size() - 1);
             elements = elements.subList(0, random.nextInt(elements.size() + 1));
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/MongoBlobGCTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/MongoBlobGCTest.java
index f4c37b546e..cba71b14ef 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/MongoBlobGCTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/MongoBlobGCTest.java
@@ -45,6 +45,7 @@ import org.apache.commons.io.filefilter.FileFilterUtils;
 import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.commons.FileIOUtils;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.junit.LogCustomizer;
 import org.apache.jackrabbit.oak.plugins.blob.BlobReferenceRetriever;
 import org.apache.jackrabbit.oak.plugins.blob.GarbageCollectorFileState;
@@ -187,7 +188,7 @@ public class MongoBlobGCTest extends AbstractMongoConnectionTest {
             Iterator<String> idIter =
                 ((GarbageCollectableBlobStore) ds.getBlobStore())
                     .resolveChunks(b.toString());
-            set.addAll(CollectionUtils.toList(idIter));
+            set.addAll(ListUtils.toList(idIter));
         }
         ds.merge(a, EmptyHook.INSTANCE, CommitInfo.EMPTY);
         return set;
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/NodeDocumentTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/NodeDocumentTest.java
index d35ba506da..7371a8ab3f 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/NodeDocumentTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/NodeDocumentTest.java
@@ -39,7 +39,7 @@ import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.VersionGarbageCollector.VersionGCStats;
 import org.apache.jackrabbit.oak.plugins.document.memory.MemoryDocumentStore;
 import org.apache.jackrabbit.oak.plugins.document.util.Utils;
@@ -48,7 +48,6 @@ import org.apache.jackrabbit.oak.spi.commit.CommitInfo;
 import org.apache.jackrabbit.oak.spi.commit.EmptyHook;
 import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
 import org.apache.jackrabbit.oak.spi.state.NodeStore;
-import org.jetbrains.annotations.NotNull;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
@@ -797,7 +796,7 @@ public class NodeDocumentTest {
         DocumentNodeStore ns2 = createTestStore(store, 2, 0);
         List<DocumentNodeStore> nodeStores = List.of(ns1, ns2);
 
-        List<RevisionVector> headRevisions = CollectionUtils.reverse(createTestData(nodeStores, random, numChanges));
+        List<RevisionVector> headRevisions = ListUtils.reverse(createTestData(nodeStores, random, numChanges));
         NodeDocument doc = getRootDocument(store);
         for (int i = 0; i < 10; i++) {
             int idx = random.nextInt(numChanges);
@@ -976,7 +975,7 @@ public class NodeDocumentTest {
         DocumentNodeStore ns1 = createTestStore(store, 1, 0);
         DocumentNodeStore ns2 = createTestStore(store, 2, 0);
         List<DocumentNodeStore> nodeStores = List.of(ns1, ns2);
-        List<RevisionVector> headRevisions = CollectionUtils.reverse(createTestData(nodeStores, random, numChanges));
+        List<RevisionVector> headRevisions = ListUtils.reverse(createTestData(nodeStores, random, numChanges));
 
         NodeDocument doc = getRootDocument(store);
 
@@ -1053,7 +1052,7 @@ public class NodeDocumentTest {
         DocumentNodeStore ns1 = createTestStore(store, 1, 0);
         DocumentNodeStore ns2 = createTestStore(store, 2, 0);
         List<DocumentNodeStore> nodeStores = List.of(ns1, ns2);
-        List<RevisionVector> headRevisions = CollectionUtils.reverse(createTestData(nodeStores, random, numChanges));
+        List<RevisionVector> headRevisions = ListUtils.reverse(createTestData(nodeStores, random, numChanges));
 
         NodeBuilder builder = ns1.getRoot().builder();
         builder.setProperty("q", 1);
@@ -1067,8 +1066,8 @@ public class NodeDocumentTest {
         }
         // do not yet merge, but create more test data
         int numMoreChanges = 50;
-        List<RevisionVector> moreRevs = CollectionUtils.reverse(createTestData(nodeStores, random, numMoreChanges, numChanges));
-        headRevisions = CollectionUtils.toList(Iterables.concat(moreRevs, headRevisions));
+        List<RevisionVector> moreRevs = ListUtils.reverse(createTestData(nodeStores, random, numMoreChanges, numChanges));
+        headRevisions = ListUtils.toList(Iterables.concat(moreRevs, headRevisions));
         numChanges += numMoreChanges;
 
         // now merge the branch and update 'q'. this will split
@@ -1080,8 +1079,8 @@ public class NodeDocumentTest {
 
         // and create yet more test data
         numMoreChanges = 50;
-        moreRevs = CollectionUtils.reverse(createTestData(nodeStores, random, numMoreChanges, numChanges));
-        headRevisions = CollectionUtils.toList(Iterables.concat(moreRevs, headRevisions));
+        moreRevs = ListUtils.reverse(createTestData(nodeStores, random, numMoreChanges, numChanges));
+        headRevisions = ListUtils.toList(Iterables.concat(moreRevs, headRevisions));
         numChanges += numMoreChanges;
 
         NodeDocument doc = getRootDocument(store);
@@ -1185,7 +1184,7 @@ public class NodeDocumentTest {
         DocumentNodeStore ns2 = createTestStore(store, 2, 0);
         List<DocumentNodeStore> nodeStores = List.of(ns1, ns2);
 
-        List<RevisionVector> headRevisions = CollectionUtils.reverse(createTestData(nodeStores, random, numChanges));
+        List<RevisionVector> headRevisions = ListUtils.reverse(createTestData(nodeStores, random, numChanges));
         NodeDocument doc = getRootDocument(store);
         for (int i = 0; i < 10; i++) {
             int idx = random.nextInt(numChanges);
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/SharedBlobStoreGCTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/SharedBlobStoreGCTest.java
index a691a3c52e..aa3e7b41e3 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/SharedBlobStoreGCTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/SharedBlobStoreGCTest.java
@@ -33,6 +33,7 @@ import org.apache.jackrabbit.guava.common.util.concurrent.MoreExecutors;
 import org.apache.jackrabbit.core.data.DataStore;
 import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.blob.BlobGarbageCollector;
 import org.apache.jackrabbit.oak.plugins.blob.GarbageCollectionRepoStats;
 import org.apache.jackrabbit.oak.plugins.blob.MarkSweepGarbageCollector;
@@ -426,7 +427,7 @@ public class SharedBlobStoreGCTest {
                 Iterator<String> idIter =
                     ((GarbageCollectableBlobStore) ds.getBlobStore())
                         .resolveChunks(b.toString());
-                set.addAll(CollectionUtils.toList(idIter));
+                set.addAll(ListUtils.toList(idIter));
             }
             ds.merge(a, EmptyHook.INSTANCE, CommitInfo.EMPTY);
             return set;
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/ValueMapTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/ValueMapTest.java
index e5e3ab86dd..7c28eacb0f 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/ValueMapTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/ValueMapTest.java
@@ -22,7 +22,7 @@ import java.util.Iterator;
 import java.util.List;
 import java.util.Set;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.memory.MemoryDocumentStore;
 import org.apache.jackrabbit.oak.plugins.document.util.Utils;
 import org.apache.jackrabbit.oak.spi.commit.CommitInfo;
@@ -123,7 +123,7 @@ public class ValueMapTest {
 
         NodeDocument doc = store.find(NODES, rootId);
         assertNotNull(doc);
-        List<NodeDocument> prevDocs = CollectionUtils.toList(
+        List<NodeDocument> prevDocs = ListUtils.toList(
                 doc.getPreviousDocs("p1", null));
         assertEquals(2, prevDocs.size());
         assertEquals(Utils.getPreviousIdFor(ROOT, r31, 0), prevDocs.get(0).getId());
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java
index a6f1020b67..f004c6ae2a 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollectorIT.java
@@ -64,7 +64,6 @@ import static org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo.DEFAULT
 import static org.apache.jackrabbit.oak.plugins.document.Collection.NODES;
 import static org.apache.jackrabbit.oak.plugins.document.Collection.SETTINGS;
 import static org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.DEFAULT_FGC_BATCH_SIZE;
-import static org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.DEFAULT_FGC_DELAY_FACTOR;
 import static org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService.DEFAULT_FGC_PROGRESS_SIZE;
 import static org.apache.jackrabbit.oak.plugins.document.FullGCHelper.assertBranchRevisionNotRemovedFromAllDocuments;
 import static org.apache.jackrabbit.oak.plugins.document.FullGCHelper.assertBranchRevisionRemovedFromAllDocuments;
@@ -111,7 +110,7 @@ import org.apache.jackrabbit.oak.InitialContent;
 import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.DocumentStoreFixture.RDBFixture;
 import org.apache.jackrabbit.oak.plugins.document.FailingDocumentStore.FailedUpdateOpListener;
 import org.apache.jackrabbit.oak.plugins.document.VersionGarbageCollector.FullGCMode;
@@ -3068,11 +3067,11 @@ public class VersionGarbageCollectorIT {
         store1.runBackgroundOperations();
 
         List<NodeDocument> previousDocTestFoo =
-                CollectionUtils.toList(getDoc("/test/" + subNodeName).getAllPreviousDocs());
+                ListUtils.toList(getDoc("/test/" + subNodeName).getAllPreviousDocs());
         List<NodeDocument> previousDocTestFoo2 =
-                CollectionUtils.toList(getDoc("/test2/" + subNodeName).getAllPreviousDocs());
+                ListUtils.toList(getDoc("/test2/" + subNodeName).getAllPreviousDocs());
         List<NodeDocument> previousDocRoot =
-                CollectionUtils.toList(getDoc("/").getAllPreviousDocs());
+                ListUtils.toList(getDoc("/").getAllPreviousDocs());
 
         assertEquals(1, previousDocTestFoo.size());
         assertEquals(1, previousDocTestFoo2.size());
@@ -3624,7 +3623,7 @@ public class VersionGarbageCollectorIT {
         assertNotNull(foo);
         Long modCount = foo.getModCount();
         assertNotNull(modCount);
-        List<String> prevIds = CollectionUtils.toList(Iterators.transform(
+        List<String> prevIds = ListUtils.toList(Iterators.transform(
                 foo.getPreviousDocLeaves(), input -> input.getId()));
 
         // run gc on another document node store
@@ -3811,7 +3810,7 @@ public class VersionGarbageCollectorIT {
 
         NodeDocument doc = getDoc("/foo");
         assertNotNull(doc);
-        List<NodeDocument> prevDocs = CollectionUtils.toList(doc.getAllPreviousDocs());
+        List<NodeDocument> prevDocs = ListUtils.toList(doc.getAllPreviousDocs());
         assertEquals(1, prevDocs.size());
         assertEquals(SplitDocType.DEFAULT_NO_BRANCH, prevDocs.get(0).getSplitDocType());
 
@@ -3822,7 +3821,7 @@ public class VersionGarbageCollectorIT {
 
         doc = getDoc("/foo");
         assertNotNull(doc);
-        prevDocs = CollectionUtils.toList(doc.getAllPreviousDocs());
+        prevDocs = ListUtils.toList(doc.getAllPreviousDocs());
         assertEquals(0, prevDocs.size());
 
         assertEquals(value, store1.getRoot().getChildNode("foo").getString("prop"));
@@ -3849,7 +3848,7 @@ public class VersionGarbageCollectorIT {
 
         // now /foo must have previous docs
         NodeDocument doc = getDoc("/foo");
-        List<NodeDocument> prevDocs = CollectionUtils.toList(doc.getAllPreviousDocs());
+        List<NodeDocument> prevDocs = ListUtils.toList(doc.getAllPreviousDocs());
         assertEquals(1, prevDocs.size());
         assertEquals(SplitDocType.DEFAULT_NO_BRANCH, prevDocs.get(0).getSplitDocType());
 
@@ -3875,7 +3874,7 @@ public class VersionGarbageCollectorIT {
 
         doc = getDoc("/foo");
         assertNotNull(doc);
-        prevDocs = CollectionUtils.toList(doc.getAllPreviousDocs());
+        prevDocs = ListUtils.toList(doc.getAllPreviousDocs());
         assertEquals(0, prevDocs.size());
         // check value
         assertEquals(value, store1.getRoot().getChildNode("foo").getString("prop"));
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/bundlor/DocumentBundlingTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/bundlor/DocumentBundlingTest.java
index 63ab8c5e90..8dd2918e08 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/bundlor/DocumentBundlingTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/bundlor/DocumentBundlingTest.java
@@ -32,7 +32,7 @@ import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.Collection;
 import org.apache.jackrabbit.oak.plugins.document.Document;
 import org.apache.jackrabbit.oak.plugins.document.DocumentMKBuilderProvider;
@@ -1046,7 +1046,7 @@ public class DocumentBundlingTest {
     }
 
     private static List<String> childNames(NodeState state, String path){
-        return CollectionUtils.toList(getNode(state, path).getChildNodeNames());
+        return ListUtils.toList(getNode(state, path).getChildNodeNames());
     }
 
     static NodeBuilder newNode(String typeName){
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/mongo/AcquireRecoveryLockTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/mongo/AcquireRecoveryLockTest.java
index 3f234c0ea7..59c199fddb 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/mongo/AcquireRecoveryLockTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/mongo/AcquireRecoveryLockTest.java
@@ -20,7 +20,7 @@ import java.util.List;
 
 import com.mongodb.MongoClient;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.AbstractMongoConnectionTest;
 import org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo;
 import org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfoDocument;
@@ -73,7 +73,7 @@ public class AcquireRecoveryLockTest extends AbstractMongoConnectionTest {
     @Test
     public void recoveryBy() throws Exception {
         MongoMissingLastRevSeeker seeker = new MongoMissingLastRevSeeker(store, getTestClock());
-        List<ClusterNodeInfoDocument> infoDocs = CollectionUtils.toList(seeker.getAllClusters());
+        List<ClusterNodeInfoDocument> infoDocs = ListUtils.toList(seeker.getAllClusters());
         assertEquals(1, infoDocs.size());
         int clusterId = infoDocs.get(0).getClusterId();
         int otherClusterId = clusterId + 1;
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/persistentCache/AsyncQueueTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/persistentCache/AsyncQueueTest.java
index 56505826de..726c2978e1 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/persistentCache/AsyncQueueTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/persistentCache/AsyncQueueTest.java
@@ -21,7 +21,7 @@ package org.apache.jackrabbit.oak.plugins.document.persistentCache;
 import org.apache.commons.io.FileUtils;
 import org.apache.jackrabbit.guava.common.cache.RemovalCause;
 import org.apache.jackrabbit.oak.cache.CacheLIRS;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.DocumentMKBuilderProvider;
 import org.apache.jackrabbit.oak.plugins.document.Path;
 import org.apache.jackrabbit.oak.plugins.document.PathRev;
@@ -155,7 +155,7 @@ public class AsyncQueueTest {
         }
 
         public boolean addInvalidate(Iterable<PathRev> keys) {
-            invalidateActions.addAll(CollectionUtils.toList(keys));
+            invalidateActions.addAll(ListUtils.toList(keys));
             return wrapped.addInvalidate(keys);
         }
     }
diff --git a/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/json/JsonSerializer.java b/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/json/JsonSerializer.java
index f371b847d6..daa42b3c33 100644
--- a/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/json/JsonSerializer.java
+++ b/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/json/JsonSerializer.java
@@ -30,7 +30,7 @@ import java.util.Collections;
 import java.util.List;
 import java.util.regex.Pattern;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.jetbrains.annotations.NotNull;
 import javax.jcr.PropertyType;
 
@@ -188,7 +188,7 @@ public class JsonSerializer {
     private Iterable<? extends ChildNodeEntry> getChildNodeEntries(NodeState node, String basePath) {
         PropertyState order = node.getProperty(":childOrder");
         if (order != null) {
-            List<String> names = Collections.unmodifiableList(CollectionUtils.toList(order.getValue(NAMES)));
+            List<String> names = Collections.unmodifiableList(ListUtils.toList(order.getValue(NAMES)));
             List<ChildNodeEntry> entries = new ArrayList<>(names.size());
             for (String name : names) {
                 try {
diff --git a/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MultiLongPropertyState.java b/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MultiLongPropertyState.java
index 4fd762c5fc..626b7a01a6 100644
--- a/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MultiLongPropertyState.java
+++ b/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MultiLongPropertyState.java
@@ -20,7 +20,7 @@ package org.apache.jackrabbit.oak.plugins.memory;
 
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.value.Conversions;
 import org.apache.jackrabbit.oak.plugins.value.Conversions.Converter;
 
@@ -37,7 +37,7 @@ public class MultiLongPropertyState extends MultiPropertyState<Long> {
      * @return  The new property state of type {@link Type#LONGS}
      */
     public static PropertyState createLongProperty(String name, Iterable<Long> values) {
-        return new MultiLongPropertyState(name, CollectionUtils.toList(values));
+        return new MultiLongPropertyState(name, ListUtils.toList(values));
     }
 
     @Override
diff --git a/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MultiPropertyState.java b/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MultiPropertyState.java
index 412dc252db..3420264e62 100644
--- a/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MultiPropertyState.java
+++ b/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/plugins/memory/MultiPropertyState.java
@@ -26,7 +26,7 @@ import javax.jcr.PropertyType;
 
 import org.apache.jackrabbit.guava.common.collect.Iterables;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.conditions.Validate;
 import org.apache.jackrabbit.oak.plugins.value.Conversions.Converter;
 import org.jetbrains.annotations.NotNull;
@@ -45,7 +45,7 @@ abstract class MultiPropertyState<T> extends EmptyPropertyState {
      */
     protected MultiPropertyState(String name, Iterable<T> values) {
         super(name);
-        this.values = CollectionUtils.toList(values);
+        this.values = ListUtils.toList(values);
     }
 
     /**
diff --git a/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/plugins/memory/PropertyBuilder.java b/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/plugins/memory/PropertyBuilder.java
index 77a7cd4ba3..938e17d95f 100644
--- a/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/plugins/memory/PropertyBuilder.java
+++ b/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/plugins/memory/PropertyBuilder.java
@@ -28,7 +28,7 @@ import org.apache.jackrabbit.guava.common.collect.Iterables;
 import org.apache.jackrabbit.oak.api.Blob;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.conditions.Validate;
 import org.jetbrains.annotations.NotNull;
 
@@ -263,7 +263,7 @@ public class PropertyBuilder<T> {
 
     @NotNull
     public PropertyBuilder<T> setValues(Iterable<T> values) {
-        this.values = CollectionUtils.toList(values);
+        this.values = ListUtils.toList(values);
         return this;
     }
 
diff --git a/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/spi/commit/CompositeConflictHandler.java b/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/spi/commit/CompositeConflictHandler.java
index d067010f20..f7de1de6b5 100644
--- a/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/spi/commit/CompositeConflictHandler.java
+++ b/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/spi/commit/CompositeConflictHandler.java
@@ -34,7 +34,7 @@ import static org.apache.jackrabbit.oak.spi.state.ConflictType.DELETE_DELETED_PR
 import java.util.LinkedList;
 
 import org.apache.jackrabbit.oak.api.PropertyState;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
 import org.apache.jackrabbit.oak.spi.state.NodeState;
 import org.jetbrains.annotations.NotNull;
@@ -57,7 +57,7 @@ public class CompositeConflictHandler implements ThreeWayConflictHandler {
      * @param handlers  the backing handlers
      */
     public CompositeConflictHandler(@NotNull Iterable<ThreeWayConflictHandler> handlers) {
-        this.handlers = (LinkedList<ThreeWayConflictHandler>) CollectionUtils.toLinkedList(requireNonNull(handlers));
+        this.handlers = (LinkedList<ThreeWayConflictHandler>) ListUtils.toLinkedList(requireNonNull(handlers));
     }
 
     /**
diff --git a/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/spi/commit/MoveTracker.java b/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/spi/commit/MoveTracker.java
index 63536bf864..5a4b47ebfa 100644
--- a/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/spi/commit/MoveTracker.java
+++ b/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/spi/commit/MoveTracker.java
@@ -22,7 +22,7 @@ import java.util.List;
 import java.util.Set;
 import org.apache.jackrabbit.guava.common.collect.Iterables;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.util.Text;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
@@ -47,7 +47,7 @@ public class MoveTracker {
     public void addMove(@NotNull String sourcePath, @NotNull String destPath) {
         // calculate original source path
         String originalSource = sourcePath;
-        for (MoveEntry me : CollectionUtils.reverse(entries)) {
+        for (MoveEntry me : ListUtils.reverse(entries)) {
             if (Text.isDescendantOrEqual(me.destPath, sourcePath)) {
                 String relPath = PathUtils.relativize(me.destPath, sourcePath);
                 if (!relPath.isEmpty()) {
@@ -68,7 +68,7 @@ public class MoveTracker {
 
     @Nullable
     public String getSourcePath(String destPath) {
-        for (MoveEntry me : CollectionUtils.reverse(entries)) {
+        for (MoveEntry me : ListUtils.reverse(entries)) {
             if (me.destPath.equals(destPath)) {
                 return me.sourcePath;
             }
@@ -78,7 +78,7 @@ public class MoveTracker {
 
     @Nullable
     public String getDestPath(String sourcePath) {
-        for (MoveEntry me : CollectionUtils.reverse(entries)) {
+        for (MoveEntry me : ListUtils.reverse(entries)) {
             if (me.sourcePath.equals(sourcePath)) {
                 return me.destPath;
             }
diff --git a/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/PersistingDiff.java b/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/PersistingDiff.java
index a39d37a0d1..32aaf4f928 100644
--- a/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/PersistingDiff.java
+++ b/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/PersistingDiff.java
@@ -26,7 +26,7 @@ import java.util.function.Supplier;
 
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.commons.Buffer;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.commons.conditions.Validate;
 import org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder;
 import org.apache.jackrabbit.oak.segment.RecordId;
@@ -124,7 +124,7 @@ public class PersistingDiff implements NodeStateDiff {
             }
             currentDiff = currentDiff.parent;
         }
-        segments = CollectionUtils.reverse(segments);
+        segments = ListUtils.reverse(segments);
 
         StringBuilder path = new StringBuilder();
         for (String segment : segments) {
diff --git a/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositorySidegrade.java b/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositorySidegrade.java
index 3da4776046..6550cac585 100755
--- a/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositorySidegrade.java
+++ b/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositorySidegrade.java
@@ -35,7 +35,7 @@ import org.apache.jackrabbit.oak.api.CommitFailedException;
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
 import org.apache.jackrabbit.oak.commons.PathUtils;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.DocumentNodeState;
 import org.apache.jackrabbit.oak.plugins.migration.FilteringNodeState;
 import org.apache.jackrabbit.oak.plugins.migration.NodeStateCopier;
@@ -382,7 +382,7 @@ public class RepositorySidegrade {
             if (temp == null) {
                 continue;
             }
-            List<String> tempValues = CollectionUtils.toList(temp.getValue(Type.STRINGS));
+            List<String> tempValues = ListUtils.toList(temp.getValue(Type.STRINGS));
             for (Map.Entry<String, String> sToD : checkpointSegmentToDoc.entrySet()) {
                 if (tempValues.contains(sToD.getKey())) {
                     tempValues.set(tempValues.indexOf(sToD.getKey()), sToD.getValue());
diff --git a/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/checkpoint/CheckpointRetriever.java b/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/checkpoint/CheckpointRetriever.java
index ca45c1e273..8b3eba06a7 100644
--- a/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/checkpoint/CheckpointRetriever.java
+++ b/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/checkpoint/CheckpointRetriever.java
@@ -19,7 +19,7 @@
 package org.apache.jackrabbit.oak.upgrade.checkpoint;
 
 import org.apache.jackrabbit.guava.common.collect.Iterables;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.document.DocumentCheckpointRetriever;
 import org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore;
 import org.apache.jackrabbit.oak.segment.CheckpointAccessor;
@@ -86,7 +86,7 @@ public final class CheckpointRetriever {
     }
 
     private static List<Checkpoint> getCheckpoints(NodeState checkpointRoot) {
-        return CollectionUtils.toList(Iterables.transform(checkpointRoot.getChildNodeEntries(),
+        return ListUtils.toList(Iterables.transform(checkpointRoot.getChildNodeEntries(),
                 input -> Checkpoint.createFromSegmentNode(input.getName(), input.getNodeState())));
     }
 }
diff --git a/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/cli/MigrationFactory.java b/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/cli/MigrationFactory.java
index 50796d4a88..1fc357f310 100644
--- a/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/cli/MigrationFactory.java
+++ b/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/cli/MigrationFactory.java
@@ -24,7 +24,7 @@ import java.util.ServiceLoader;
 import javax.jcr.RepositoryException;
 
 import org.apache.jackrabbit.core.RepositoryContext;
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore;
 import org.apache.jackrabbit.oak.spi.blob.BlobStore;
 import org.apache.jackrabbit.oak.spi.commit.CommitHook;
@@ -123,7 +123,7 @@ public class MigrationFactory {
 
     private List<CommitHook> loadCommitHooks() {
         ServiceLoader<CommitHook> loader = ServiceLoader.load(CommitHook.class);
-        return Collections.unmodifiableList(CollectionUtils.toList(loader.iterator()));
+        return Collections.unmodifiableList(ListUtils.toList(loader.iterator()));
     }
 
 }
diff --git a/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/cli/OakUpgrade.java b/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/cli/OakUpgrade.java
index 1716b75e6e..7f455b0b08 100644
--- a/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/cli/OakUpgrade.java
+++ b/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/cli/OakUpgrade.java
@@ -26,7 +26,7 @@ import org.apache.jackrabbit.guava.common.io.Closer;
 
 import joptsimple.OptionSet;
 
-import org.apache.jackrabbit.oak.commons.collections.CollectionUtils;
+import org.apache.jackrabbit.oak.commons.collections.ListUtils;
 import org.apache.jackrabbit.oak.spi.lifecycle.CompositeInitializer;
 import org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer;
 import org.apache.jackrabbit.oak.upgrade.cli.parser.CliArgumentException;
@@ -95,7 +95,7 @@ public class OakUpgrade {
 
     private static RepositoryInitializer createCompositeInitializer() {
         ServiceLoader<RepositoryInitializer> loader = ServiceLoader.load(RepositoryInitializer.class);
-        List<RepositoryInitializer> initializers = CollectionUtils.toList(loader.iterator());
+        List<RepositoryInitializer> initializers = ListUtils.toList(loader.iterator());
         return new CompositeInitializer(initializers);
     }