void (@NotNull final AnActionEvent e) { final GuiEditor editor = FormEditingUtil.getActiveEditor(e.getDataContext()); if (editor != null) { showPreviewFrame(editor.getModule(), editor.getFile(), editor.getStringDescriptorLocale()); } }