String baseTypeName= typeName.substring(0, typeName.indexOf('[')); String variableName= completion.typeToVariable(baseTypeName);  if (!completion.existsLocalName(variableName)) return variableName;
String baseTypeName= typeName.substring(0, typeName.lastIndexOf('['));  NameProposer proposer= new NameProposer(); String[] proposals= proposer.proposeLocalVariableName(baseTypeName);  for (int i= 0; i < proposals.length; i++) { String variableName= proposals[i]; if (!completion.existsLocalName(variableName)) return variableName; }
	public String guessArrayElement() {		CompilationUnitCompletion completion= getCompletion();		LocalVariable[] localArrays= completion.findLocalArrays();				if (localArrays.length > 0) {			String typeName= localArrays[localArrays.length - 1].typeName;			String baseTypeName= typeName.substring(0, typeName.indexOf('['));			String variableName= completion.typeToVariable(baseTypeName);						if (!completion.existsLocalName(variableName))				return variableName;		}		return null;	}