boolean (GlobalSearchScope globalSearchScope) { Project project = myConfiguration.getProject(); JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(project); Boolean isCustomJUnit5UsingPsi = ReadAction.nonBlocking(() -> { if (DumbService.isDumb(project)) { return null; } return findCustomJunit5TestEngineUsingPsi(globalSearchScope, project, psiFacade); }).executeSynchronously(); if (isCustomJUnit5UsingPsi != null) { return isCustomJUnit5UsingPsi; } return findCustomJUnit5TestEngineUsingClassLoader(globalSearchScope, psiFacade); }