boolean (@NotNull Object owner, @NotNull String property) { Boolean value = ReflectionUtil.getField(owner.getClass(), owner, boolean.class, property); if (value == null) { throw new IllegalArgumentException("Property '" + property + "' not found in " + owner + " (" + owner.getClass() + ")"); } return value; }