DistributionType () { if (myGradleDistributionComboBox == null) return null; Object selection = myGradleDistributionComboBox.getSelectedItem(); return selection == null ? null : ((DistributionTypeItem)selection).value; }