Collection<VcsRoot> () { MAPPING_DETECTION_LOG.debug("VcsRootDetectorImpl.getOrDetect"); synchronized (LOCK) { if (myDetectedRoots != null) { return ContainerUtil.mapNotNull(myDetectedRoots, it -> it.toVcsRoot(myProject)); } return detect(); } }