ContentEntry (String moduleName, String path) { ContentEntry[] roots = getContentRoots(moduleName); for (ContentEntry e : roots) { if (e.getUrl().equals(VfsUtilCore.pathToUrl(path))) return e; } throw new AssertionError("content root not found in module " + moduleName + ":" + "\nExpected root: " + path + "\nExisting roots:" + "\n" + StringUtil.join(roots, it -> " * " + it.getUrl(), "\n")); }