public Object visitNotSentence(UnarySentence fs, Object arg) { Object negatedValue = fs.getNegated().accept(this, null); if (negatedValue != null) { return !((bool) negatedValue); } else { return null; } }