String[] (ConfigurationContext context) { DataContext dataContext = context.getDataContext(); AbstractTestProxy[] testProxies = dataContext.getData(AbstractTestProxy.DATA_KEYS); if (testProxies == null) return null; Module module; RunConfiguration runConfiguration = dataContext.getData(RunConfiguration.DATA_KEY); if (runConfiguration instanceof JUnitConfiguration) { module = ((JUnitConfiguration)runConfiguration).getConfigurationModule().getModule(); } else if (runConfiguration == null) { module = dataContext.getData(PlatformCoreDataKeys.MODULE); if (module == null) return null; } else { return null; } Project project = context.getProject(); GlobalSearchScope searchScope = module != null ? GlobalSearchScope.moduleWithDependenciesAndLibrariesScope(module) : GlobalSearchScope.projectScope(project); if (!DumbModeAccessType.RELIABLE_DATA_ONLY.ignoreDumbMode(() -> JUnitUtil.isJUnit5(searchScope, project) || TestObject.hasJUnit5EnginesAPI(searchScope, JavaPsiFacade.getInstance(project)))) { return null; } return Arrays.stream(testProxies).map(testProxy -> TestUniqueId.getEffectiveNodeId(testProxy, project, searchScope)) .filter(Objects::nonNull) .toArray(String[]::new); }