public Optional<PushEventDto> raiseEventOnIssue(String projectUuid, DefaultIssue currentIssue) {
    var currentIssueComponentUuid = currentIssue.componentUuid();
    if (currentIssueComponentUuid == null) {
      return Optional.empty();
    }

    var component = treeRootHolder.getComponentByUuid(currentIssueComponentUuid);

    if (isTaintVulnerability(currentIssue)) {
      return raiseTaintVulnerabilityEvent(projectUuid, component, currentIssue);
    }
    if (isSecurityHotspot(currentIssue)) {
      return raiseSecurityHotspotEvent(projectUuid, component, currentIssue);
    }
    return Optional.empty();
  }
@Test
  public void raiseEventOnIssue_whenComponentUuidNull_shouldSkipEvent() {
    DefaultIssue defaultIssue = createDefaultIssue()
      .setComponentUuid(null);

    assertThat(underTest.raiseEventOnIssue("some-project-uuid", defaultIssue)).isEmpty();
  }