void (@NotNull Project project, @NotNull PsiMethod method, @NotNull AnActionEvent e) { Couple<String> key = getMethodKey(method); if (key == null) return; DataContext dataContext = DataManager.getInstance().getDataContext(e.getRequiredData(EDITOR).getContentComponent()); FeatureUsageTracker.getInstance().triggerFeatureUsed("test.discovery"); String presentableName = PsiFormatUtil.formatMethod(method, PsiSubstitutor.EMPTY, PsiFormatUtilBase.SHOW_CONTAINING_CLASS | PsiFormatUtilBase.SHOW_NAME, 0); DiscoveredTestsTree tree = showTree(project, dataContext, presentableName, e.getPlace()); processMethodsAsync(project, new PsiMethod[]{method}, Collections.emptyList(), createTreeProcessor(tree), () -> tree.setPaintBusy(false)); }