AnAction (@NotNull Notification notification, @NotNull Project project) { return new DumbAwareAction(PyBundle.message("compile.cython.extensions.install")) { @Override public void actionPerformed(@NotNull AnActionEvent e) { compileCythonExtension(project); notification.expire(); } }; }