Bug 74627 [typing] Importing Type leaves linked editing mode
3.1 M2: - use for-loop over collection template to enter linked editing mode - step to "type" - type Set - use quick fix to import java.util.Set Observe: linked edit mode is exited
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/AddImportOnSelectionAction.java
private Shell getShell() {
		return fEditor.getSite().getShell();
	}
	
	private static class SelectTypeQuery implements IChooseImportQuery {
		
		private final Shell fShell;
		public SelectTypeQuery(Shell shell) {
			fShell= shell;
		}
		/* (non-Javadoc)
		 * @see org.eclipse.jdt.internal.corext.codemanipulation.AddImportsOperation.IChooseImportQuery#chooseImport(org.eclipse.jdt.internal.corext.util.TypeInfo[], java.lang.String)
		 */
		public TypeInfo chooseImport(TypeInfo[] results, String containerName) {
			int nResults= results.length;
			
			if (nResults == 0) {
				return null;
			} else if (nResults == 1) {
				return results[0];
			}
			
			if (containerName.length() != 0) {
				for (int i= 0; i < nResults; i++) {
					TypeInfo curr= results[i];
					if (containerName.equals(curr.getTypeContainerName())) {
						return curr;
					}
				}