private void checkVersion(String value, State yes) {
        if (isVersion1(value)) {
            myState = yes;
        } else if (isVersion2(value) || isVersion3(value)) {
            myState = State.VERSION2;
        } else {
            myState = State.NO;
        }
    }
private void checkVersion(String value, State yes)