List<VirtualFile> () { List<VirtualFile> roots = new SmartList<>(); for (VirtualFile root : ManagingFS.getInstance().getRoots()) { if ((root.isInLocalFileSystem() || VersionManagingFileSystem.isEnforcedNonLocal(root)) && !(root.getFileSystem() instanceof TempFileSystem)) { roots.add(root); } } return roots; }