if (locations != null) { for (int i= 0; i < locations.length; i++) { switch (locations[i].getProblemId()) { case IProblem.LocalVariableHidingLocalVariable: case IProblem.LocalVariableHidingField: case IProblem.FieldHidingLocalVariable: case IProblem.FieldHidingField: case IProblem.ArgumentHidingLocalVariable: case IProblem.ArgumentHidingField: return false; } } }
	private boolean getRenameLocalProposals(IInvocationContext context, ASTNode node, Collection resultingCollections) {		if (!(node instanceof SimpleName)) {			return false;		}		SimpleName name= (SimpleName) node;		IBinding binding= name.resolveBinding();		if (binding != null && binding.getKind() == IBinding.PACKAGE) {			return false;		}		if (resultingCollections == null) {			return true;		}						LinkedNamesAssistProposal proposal= new LinkedNamesAssistProposal(context.getCompilationUnit(), name);		resultingCollections.add(proposal);		return true;	}