void (List<PsiClass> classes, PsiMethod method, ConfigurationContext context, Runnable performRunnable) { ReadAction.nonBlocking(() -> { ((T)configuration.getConfiguration()).bePatternConfiguration(classes, method); if (!classes.isEmpty()) { PsiClass containerClass = psiElement instanceof PsiMethod ? ((PsiMethod)psiElement).getContainingClass() : ((PsiClass)psiElement); setNestedClass(classes.get(0), containerClass); } }) .finishOnUiThread(ModalityState.nonModal(), v -> super.runForClasses(classes, method, context, performRunnable)) .submit(AppExecutorUtil.getAppExecutorService()); }