Extracted method getBranchesContaining() into GitClient to be used in Git plugin