public static boolean contains(File file, String pattern) throws IOException {
        try (Scanner fileScanner = new Scanner(file, UTF_8.name())) {
            final Pattern regex = Pattern.compile(pattern);
            if (fileScanner.findWithinHorizon(regex, 0) != null) {
                return true;
            }
        }
        return false;
    }
@Test
    public void testContains_File_List() throws Exception {
        File file = BaseTest.getResourceAsFile(this, "SearchTest.txt");
        String[] patterns = {"jeremy long", "blue"};
        
        boolean expResult = false;
        boolean result = FileContentSearch.contains(file, patterns);
        assertEquals(expResult, result);
        
        String[] patterns2 = {"jeremy long", "blue", "(?i)jeremy long"};
        expResult = true;
        result = FileContentSearch.contains(file, patterns2);
        assertEquals(expResult, result);
    }