void (@NotNull Project project, PsiMethod @NotNull [] methods, @NotNull List<String> filePaths, @NotNull TestDiscoveryProducer.PsiTestProcessor processor, @Nullable Runnable doWhenDone) { if (DumbService.isDumb(project)) return; ApplicationManager.getApplication().executeOnPooledThread(() -> { processMethods(project, methods, filePaths, processor); if (doWhenDone != null) { EdtInvocationManager.getInstance().invokeLater(doWhenDone); } }); }