public static boolean containsAny(CharSequence cs, char... searchChars) {
        if (isEmpty(cs) || ArrayUtils.isEmpty(searchChars)) {
            return false;
        }
        int csLength = cs.length();
        int searchLength = searchChars.length;
        int csLast = csLength - 1;
        int searchLast = searchLength - 1;
        for (int i = 0; i < csLength; i++) {
            char ch = cs.charAt(i);
            for (int j = 0; j < searchLength; j++) {
                if (searchChars[j] == ch) {
                    if (Character.isHighSurrogate(ch)) {
                        if (j == searchLast) {
                            // missing low surrogate, fine, like String.indexOf(String)
                            return true;
                        }
                        if (i < csLast && searchChars[j + 1] == cs.charAt(i + 1)) {
                            return true;
                        }
                    } else {
                        // ch is in the Basic Multilingual Plane
                        return true;
                    }
                }
            }
        }
        return false;
    }
<p>Checks if the CharSequence contains any character in the given
set of characters.</p>

<p>A {@code null} CharSequence will return {@code false}.
A {@code null} or zero length search array will return {@code false}.</p>

<pre>
StringUtils.containsAny(null, *)                = false
StringUtils.containsAny("", *)                  = false
StringUtils.containsAny(*, null)                = false
StringUtils.containsAny(*, [])                  = false
StringUtils.containsAny("zzabyycdxx",['z','a']) = true
StringUtils.containsAny("zzabyycdxx",['b','y']) = true
StringUtils.containsAny("aba", ['z'])           = false
</pre>

@param cs  the CharSequence to check, may be null
@param searchChars  the chars to search for, may be null
@return the {@code true} if any of the chars are found,
{@code false} if no match or null input
@since 2.4
@since 3.0 Changed signature from containsAny(String, char[]) to containsAny(CharSequence, char...)
android/android_framework/base/src/main/java/lang3/StringUtils.java