void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); VirtualFile file = Objects.requireNonNull(JBIterable.from(e.getData(VcsDataKeys.VIRTUAL_FILES)).single()); T repository = Objects.requireNonNull(getRepositoryManager(project).getRepositoryForFileQuick(file)); assert !repository.isFresh(); JBPopup popup = createPopup(project, repository, file); if (popup == null) return; ApplicationManager.getApplication().invokeLater(() -> { IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> popup.showCenteredInCurrentWindow(project)); }); }