Мой вариант кода:
static {
    if (president == null) {
        synchronized (OurPresident.class) {
            if (president == null) {
                president = new OurPresident();
            }
        }
    }
}
Почему валидатор может не пропускать?