boolean (@NotNull Task task, @NotNull String propertyName, boolean defaultValue) { Object value = getProperty(task, propertyName); if (value == null) { return defaultValue; } return Boolean.parseBoolean(value.toString()); }