public ShowByPathWarningsGuard(String[] paths, ShowType showType) { Preconditions.checkArgument(paths != null); Preconditions.checkArgument(showType != null); List<String> pathList = Lists.newArrayList(paths); if (showType == ShowType.INCLUDE) { warningsGuard = ByPathWarningsGuard.exceptPath(pathList, CheckLevel.OFF); } else { warningsGuard = ByPathWarningsGuard.forPath(pathList, CheckLevel.OFF); } }