*/
private Map<IPath, List<IEditorReference>> removeEditorsNotMatchingCurrentName(String currentName,
List<IEditorReference> editorReferences) {
Map<IPath, List<IEditorReference>> ret = new HashMap<IPath, List<IEditorReference>>();
for (Iterator<IEditorReference> it = editorReferences.iterator(); it.hasNext();) {
IEditorReference iEditorReference = it.next();
try {
IEditorInput otherInput = iEditorReference.getEditorInput();
//Always get the 'original' name and not the currently set name, because
//if we previously had an __init__.py editor which we renamed to package/__init__.py
//and we open a new __init__.py, we want it renamed to new_package/__init__.py
IPath pathFromOtherInput = getPathFromInput(otherInput);