void (PsiClass aClass, Condition<? super PsiClass> acceptAsTest, Set<Location<?>> classes) { if (Registry.is("junit4.accept.inner.classes", true)) { classes.addAll(ReadAction.compute(() -> JBTreeTraverser.of(PsiClass::getInnerClasses) .withRoot(aClass).filter(acceptAsTest).map(psiClass -> PsiLocation.fromPsiElement(psiClass)) .toList())); } else if (acceptAsTest.value(aClass)) { classes.add(PsiLocation.fromPsiElement(aClass)); } }