code: private List<Integer> getRunningFlowsHelper(final int projectId, final String flowId,
        final Collection<Pair<ExecutionReference, ExecutableFlow>> collection) {
      final List<Integer> executionIds = new ArrayList<>();
      for (final Pair<ExecutionReference, ExecutableFlow> ref : collection) {
        if (ref.getSecond().getFlowId().equals(flowId)
            && ref.getSecond().getProjectId() == projectId) {
          executionIds.add(ref.getFirst().getExecId());
        }
      }
      return executionIds;
    }
docs: /* Helper method for getRunningFlows