void (@NotNull AnActionEvent e) { final RepositoryTreeNode selectedNode = getSelectedNode(); if (!ModalityState.nonModal().equals(ModalityState.current())) { doCancelAction(); } doCheckout(ProjectLevelVcsManager.getInstance(myProject).getCompositeCheckoutListener(), selectedNode); }