boolean (@NotNull OrderRootType type, @NotNull ModuleRootModel rootModel, @NotNull Collection<? super VirtualFile> result, boolean includeProduction, boolean includeTests, @NotNull List<? extends OrderEnumerationHandler> customHandlers) { for (OrderEnumerationHandler handler : customHandlers) { final List<String> urls = new ArrayList<>(); final boolean added = handler.addCustomModuleRoots(type, rootModel, urls, includeProduction, includeTests); for (String url : urls) { ContainerUtil.addIfNotNull(result, VirtualFileManager.getInstance().findFileByUrl(url)); } if (added) return true; } return false; }