code: @EventBusListenerMethod(scope = EventScope.UI)
      public void onEvent(final PinUnpinEvent event) {
          final Optional<Long> pinnedDist = managementUIState.getTargetTableFilters().getPinnedDistId();
  
          if (event == PinUnpinEvent.PIN_DISTRIBUTION && pinnedDist.isPresent()) {
              displayCountLabel(pinnedDist.get());
          } else {
              setValue("");
              displayTargetCountStatus();
          }
      }
docs: TenantAwareEvent Listener for Pinning Distribution.
  
  @param event