diff --git a/java/execution/impl/src/com/intellij/execution/testDiscovery/actions/ShowAffectedTestsAction.java b/java/execution/impl/src/com/intellij/execution/testDiscovery/actions/ShowAffectedTestsAction.java index 4137c0a25933..1a64aafadac6 100644 --- a/java/execution/impl/src/com/intellij/execution/testDiscovery/actions/ShowAffectedTestsAction.java +++ b/java/execution/impl/src/com/intellij/execution/testDiscovery/actions/ShowAffectedTestsAction.java @@ -1,4 +1,4 @@ -// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.execution.testDiscovery.actions; import com.intellij.codeInsight.actions.VcsFacadeImpl; @@ -383,8 +383,8 @@ public class ShowAffectedTestsAction extends AnAction { @NotNull List filePaths, @NotNull TestDiscoveryProducer.PsiTestProcessor processor) { List> classesAndMethods = - ReadAction.compute(() -> Arrays.stream(methods) - .map(method -> getMethodKey(method)).filter(Objects::nonNull).collect(Collectors.toList())); + ReadAction.nonBlocking(() -> Arrays.stream(methods) + .map(method -> getMethodKey(method)).filter(Objects::nonNull).collect(Collectors.toList())).executeSynchronously(); processTestDiscovery(project, processor, classesAndMethods, filePaths); }