/** * The sources of branches. * * @return the sources of branches. */ @NonNull public List<BranchSource> getSources() { if (sources != null) { return sources.toList(); } else { // return empty, this object is still being constructed return Collections.emptyList(); } }