Moving getEditorFile utility to BaseEditor.