void (VirtualFile dir) { VirtualFile[] roots = ModuleRootManager.getInstance(getModule()).getSourceRoots(); if (dir == null) { assertEmpty(roots); } else { VirtualFile root = assertOneElement(roots); assertEquals(dir, root); } }