boolean (String optionName) { final Boolean value = ReflectionUtil.getField(myInspection.getClass(), myInspection, boolean.class, optionName); assert value != null : "field '" + optionName + "'not found"; return value; }