void (@NotNull AnActionEvent e) { final Presentation presentation = e.getPresentation(); if (!LightEdit.owns(e.getProject())) { presentation.setEnabledAndVisible(false); } else { presentation.setVisible(true); VirtualFile file = e.getData(CommonDataKeys.VIRTUAL_FILE); presentation.setEnabled(file != null && file.isInLocalFileSystem()); } }