@Override
    public void execute() {
//        NoteEditorFrame noteEditorFrame = NoteEditorFrame.getInstance();
        File file = noteEditorFrame.showOpenFileDialog("Open file");
        if (file != null){
             editFile(file);
        }
    }