class RequiredFlag {

    public static Boolean choose(Boolean parent, Boolean child) {
        if (parent == Boolean.TRUE || child == Boolean.TRUE) {
            return true;
        }

        return parent == null ? child : parent;
    }

}