class NNAnyFunction extends BaseFEELFunction {

    public FEELFnResult<Boolean> invoke(@ParameterName( "list" ) List list) {
        if ( list == null ) {
            return FEELFnResult.ofResult( false );
        }
        boolean result = false;
        for ( final Object element : list ) {
            if (element != null && !(element instanceof Boolean)) {
                return FEELFnResult.ofError(new InvalidParametersEvent(Severity.ERROR, "an element in the list is not a Boolean"));
            } else {
                if (element != null) {
                    result |= (Boolean) element;
                }
            }
        }
        return FEELFnResult.ofResult( result );
    }

    public  NNAnyFunction();

}