protected static boolean containsPrefix(final List<String> source, final String toCheck) {
    """
	Checks if any element within source startsWith the provided toCheck string.
	
	@param source  The list of strings which could possibly contain toCheck.
	@param toCheck The string to validate.
	@return <code>true</code> if any element within source returns true to
	<code>toCheck.startsWith(element)</code>.
    """

        if (source != null) {

            for (final String current : source) {
                if (toCheck.startsWith(current)) {
                    return true;
                }
            }
        }

        // The prefix was not found within the provided string toCheck.
        return false;
    }
protected static boolean containsPrefix(final List<String> source, final String toCheck) {

        if (source != null) {

            for (final String current : source) {
                if (toCheck.startsWith(current)) {
                    return true;
                }
            }
        }

        // The prefix was not found within the provided string toCheck.
        return false;
    }
protected static boolean containsPrefix ( final List < String > source , final String toCheck ) { if ( source != null ) { for ( final String current : source ) { if ( toCheck . startsWith ( current ) ) { return true ; } } } // The prefix was not found within the provided string toCheck. return false ; }
Checks if any element within source startsWith the provided toCheck string.

@param source  The list of strings which could possibly contain toCheck.
@param toCheck The string to validate.
@return <code>true</code> if any element within source returns true to
<code>toCheck.startsWith(element)</code>.
Checks if any element within source startsWith the provided toCheck string .