void (@NotNull AnActionEvent e) { DataContext dataContext = e.getDataContext(); Project project = CommonDataKeys.PROJECT.getData(dataContext); if (project == null) return; ReplaceInProjectManager replaceManager = ReplaceInProjectManager.getInstance(project); replaceManager.replaceInProject(dataContext, null); }