List<TestDataFile> (@NotNull PsiMethod method) { if (!isEnabled()) return Collections.emptyList(); PsiClass testClass = ReadAction.compute(() -> method.getContainingClass()); if (testClass == null) return Collections.emptyList(); String testClassQualifiedName = ReadAction.compute(() -> testClass.getQualifiedName()); if (testClassQualifiedName == null) return Collections.emptyList(); List<Couple<String>> testQName = Collections.singletonList(Couple.of(testClassQualifiedName, ReadAction.compute(() -> method.getName()))); Project project = ReadAction.compute(() -> method.getProject()); AffectedPathConsumer consumer = new AffectedPathConsumer(project); TestDiscoveryProducer.consumeAffectedPaths(project, testQName, consumer, (byte)0x0 /* TODO */); return consumer.getTestData(); }