void (@NotNull AnActionEvent e) { Project project = requireNonNull(e.getProject()); VirtualFile file = requireNonNull(VcsContextUtil.selectedFile(e.getDataContext())); AbstractVcs vcs = requireNonNull(ChangesUtil.getVcsForFile(file, project)); Editor editor = e.getData(CommonDataKeys.EDITOR); ProgressManager.getInstance().run(new MyTask(project, file, vcs, editor)); }