JBPopup (@NotNull Project project, @NotNull HgRepository repository) { StatusBar statusBar = myStatusBar; return statusBar == null ? null : HgBranchPopup.getInstance(project, repository, DataManager.getInstance().getDataContext(statusBar.getComponent())).asListPopup(); }