Potrzebny refaktoring klasy Editor.