git: optimize sorting given file paths by git roots (IDEA-145778)
git: optimize sorting given file paths by git roots (IDEA-145778)

Get VcsRoot directly instead of GitRepository which can lead to unnecessary overhead to create and validate GitRepository object.

GitOrigin-RevId: 9570fa5fd9ecb7fd0299699ba615b847c537a29d
allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community