class BPMNDiagramFilterProvider implements StunnerFormElementFilterProvider {

    void onFormFieldChanged(@Observes FormFieldChanged formFieldChanged) {
        final String adHocFieldName = BPMNDiagramImpl.DIAGRAM_SET + "." + DiagramSet.ADHOC;
        if (!Objects.equals(formFieldChanged.getName(), adHocFieldName)) {
            return;
        }

        refreshFormPropertiesEvent.fire(new RefreshFormPropertiesEvent(sessionManager.getCurrentSession(), formFieldChanged.getUuid()));
    }

      BPMNDiagramFilterProvider();
    @Inject public  BPMNDiagramFilterProvider(final SessionManager sessionManager,
                                     final DiagramTypeClientService diagramTypeService,
                                     final FieldChangeHandlerManager fieldChangeHandlerManager,
                                     final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent);

}