String[] proposals= NamingConventions.suggestLocalVariableNames(project, var.typePackageName, baseTypeName, 0, completion.getLocalVariableNames());
String indexName= getIndex(); String[] excludedNames= completion.getLocalVariableNames(); if (indexName != null) { ArrayList excludedNamesList= new ArrayList(Arrays.asList(excludedNames)); excludedNamesList.add(indexName); excludedNames= (String[])excludedNamesList.toArray(new String[excludedNamesList.size()]); } String[] proposals= NamingConventions.suggestLocalVariableNames(project, var.typePackageName, baseTypeName, 0, excludedNames);
	public String guessArrayElement() {		ICompilationUnit cu= getCompilationUnit();		if (cu == null) {			return null;		}				CompilationUnitCompletion completion= getCompletion();		LocalVariable[] localArrays= completion.findLocalArrays();				if (localArrays.length > 0) {			int idx= localArrays.length - 1;						LocalVariable var= localArrays[idx];						IJavaProject project= cu.getJavaProject();			String typeName= var.typeName;			String baseTypeName= typeName.substring(0, typeName.lastIndexOf('['));			String[] proposals= NamingConventions.suggestLocalVariableNames(project, var.typePackageName, baseTypeName, 0, completion.getLocalVariableNames());			if (proposals.length > 0) {				return proposals[0];			}		}		return null;	}