I think if the function name were `getOrCreateDependencyIndex()` then then comment would not be needed.