public List<Flow> convertFlows(String componentName, @Nullable DbIssues.Locations issueLocations) {
    if (issueLocations == null) {
      return Collections.emptyList();
    }
    return issueLocations.getFlowList().stream()
      .map(sourceFlow -> toFlow(componentName, sourceFlow))
      .collect(Collectors.toCollection(LinkedList::new));
  }
@Test
  public void convertFlows_withEmptyDbLocations_returnsEmptyList() {
    DbIssues.Locations issueLocations = DbIssues.Locations.newBuilder().build();
    assertThat(flowGenerator.convertFlows(COMPONENT_NAME, issueLocations)).isEmpty();
  }