Moved some unrelated code from GradleModelLoader to NamedSourceRoot.
Moved some additional code from GradleModelLoader.