Bug 43248 "Assign statement to local variable" removes preceeding comment [quick assist] [ast rewrite]
Consider the method public void a() { // here is a comment System.getenv("");X } where X denotes the cursor. If the quick fix "Assign statement to local variable" is used the comment disapears...
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AssignToVariableAssistProposal.java
result= curr;
				}
				if (taken.add(curr)) {
					addLinkedModeProposal(KEY_NAME, curr);
				}
			}			
		}
		String typeName= base.getName();
		String[] names= NamingConventions.suggestFieldNames(project, packName, typeName, binding.getDimensions(), modifiers, excludedNames);
		if (names.length == 0) {
			return "class1"; 
		}
		for (int i= 0; i < names.length; i++) {
			String curr= names[i];
			if (taken.add(curr)) {
				addLinkedModeProposal(KEY_NAME, curr);
			}
		}
		if (result == null) {
			result= names[0];
		}
		return result;		
	}
	
	private String[] getUsedVariableNames() {
		CompilationUnit root= (CompilationUnit) fNodeToAssign.getRoot();
		IBinding[] bindings= (new ScopeAnalyzer(root)).getDeclarationsInScope(fNodeToAssign.getStartPosition(), ScopeAnalyzer.VARIABLES);
		String[] names= new String[bindings.length];
		for (int i= 0; i < names.length; i++) {
			names[i]= bindings[i].getName();