class PropertyEditorHelper {

    public static boolean validade(PropertyEditorEvent event) {
        if (event == null) {
            throw new NullEventException("Event should not be null,");
        }
        if (event.getSortedProperties().isEmpty()) {
            throw new NoPropertiesException("Event should not have empty properties.");
        }

        return event != null && !event.getSortedProperties().isEmpty();
    }

}