code: public void blockGenerateDeploymentWhenNeeded(@Observes EventContext<GenerateDeployment> eventContext) {
          if (!extensionEnabled()) {
              eventContext.proceed();
          }
          else if (suiteDeploymentGenerated) {
              // Do nothing with event.
              debug("Blocking GenerateDeployment event {0}", eventContext.getEvent().toString());
          } else {
              suiteDeploymentGenerated = true;
              debug("NOT Blocking GenerateDeployment event {0}", eventContext.getEvent().toString());
              eventContext.proceed();
          }
      }
docs: Method ignoring GenerateDeployment events if deployment is already done.
  
  @param eventContext Event to check