? getSelectedMultipolygonRelation(selectedWays, selectedRelations)
: null;
// download incomplete relation if necessary
if (multipolygonRelation != null && (multipolygonRelation.isIncomplete() || multipolygonRelation.hasIncompleteMembers())) {
Main.worker.submit(new DownloadRelationTask(Collections.singleton(multipolygonRelation), Main.main.getEditLayer()));
}
// create/update multipolygon relation
Main.worker.submit(new CreateUpdateMultipolygonTask(selectedWays, multipolygonRelation));
}