protected void refreshElements(PsiElement[] elements) { LOG.assertTrue(elements.length > 0); if (myPrimaryElement != null) { myPrimaryElement = elements[0]; } final Iterator<String> newNames = myAllRenames.values().iterator(); LinkedHashMap<PsiElement, String> newAllRenames = new LinkedHashMap<PsiElement, String>(); for (PsiElement resolved : elements) { newAllRenames.put(resolved, newNames.next()); } myAllRenames.clear(); myAllRenames.putAll(newAllRenames); }
public Collection<String> getNewNames() { return myAllRenames.values(); }