docs: @SuppressWarnings("checkstyle:npathcomplexity")
  	public void removeSREs(ISREInstall... sres) {
  		final ISREInstall defaultSRE = getDefaultSRE();
  		final String defaultId = defaultSRE == null ? null : defaultSRE.getId();
  		int defaultIndex = -1;
  		if (defaultId != null) {
  			for (int i = 0; defaultIndex == -1 && i < this.sreTable.getItemCount(); ++i) {
  				if (defaultId.equals(
  						((ISREInstall) this.sreTable.getItem(i).getData()).getId())) {
  					defaultIndex = i;
  				}
  			}
  		}
  		final String normedDefaultId = Strings.nullToEmpty(defaultId);
  		boolean defaultIsRemoved = false;
  		for (final ISREInstall sre : sres) {
  			if (this.sreArray.remove(sre) && sre.getId().equals(normedDefaultId)) {
  				defaultIsRemoved = true;
  			}
  		}
  		refreshSREListUI();
  		// Update the default SRE
  		if (defaultIsRemoved) {
  			if (this.sreTable.getItemCount() == 0) {
  				setSelection(null);
  			} else {
  				if (defaultIndex < 0) {
  					defaultIndex = 0;
  				} else if (defaultIndex >= this.sreTable.getItemCount()) {
  					defaultIndex = this.sreTable.getItemCount() - 1;
  				}
  				setSelection(new StructuredSelection(
  						this.sreTable.getItem(defaultIndex).getData()));
  			}
  		}
  		this.sresList.refresh(true);
  		if (defaultIsRemoved) {
  			fireDefaultSREChanged();
  		}
  		updateUI();
  	}