PushUpdateSettings () { UpdateMethod updateMethod = mySettings.getUpdateMethod(); if (updateMethod == UpdateMethod.BRANCH_DEFAULT) { // deliberate limitation: we have only 2 buttons => choose method from the 1st repo if different updateMethod = GitUpdater.resolveUpdateMethod(myPushSpecs.keySet().iterator().next()); } return new PushUpdateSettings(updateMethod); }