public static boolean containsIgnoreCase(List<String> list, String str) {
        for (String i : list) {
            if (i.equalsIgnoreCase(str)) {
                return true;
            }
        }
        return false;
    }
@Test
    void testContainsIgnoreCase() {
        List<String> list = Arrays.asList("foo", "bar");
        assertTrue(StringUtils.containsIgnoreCase(list, "foo"));
        assertTrue(StringUtils.containsIgnoreCase(list, "Foo"));
        assertFalse(StringUtils.containsIgnoreCase(list, "baz"));
    }