boolean (final String moduleName, final String url) { if (myModuleElements.isEmpty()) return true; DisabledAutodetectionInModuleElement element = findElement(moduleName); if (element == null) return false; if (element.isDisableInWholeModule() || element.getFiles().contains(url)) { return true; } for (String directoryUrl : element.getDirectories()) { if (!directoryUrl.endsWith("/")) { directoryUrl += "/"; } if (url.startsWith(directoryUrl) || !SystemInfo.isFileSystemCaseSensitive && StringUtil.startsWithIgnoreCase(url, directoryUrl)) { return true; } } return false; }