void (@NotNull AnActionEvent e) { super.update(e); Presentation presentation = e.getPresentation(); if (presentation.isEnabled()) { IdeaGateway gateway = getGateway(); VirtualFile file = getFile(e); presentation.setEnabled(gateway != null && file != null && isEnabled(gateway, file)); } }