void (PsiClass aClass, PsiMethod psiMethod, ConfigurationContext context, Runnable performRunnable) { PsiClass containerClass; if (psiElement instanceof PsiMethod) { final Project project = psiMethod.getProject(); final MethodLocation methodLocation = new MethodLocation(project, psiMethod, PsiLocation.fromPsiElement(aClass)); ((T)configuration.getConfiguration()).beMethodConfiguration(methodLocation); containerClass = psiMethod.getContainingClass(); } else { ((T)configuration.getConfiguration()).beClassConfiguration(aClass); containerClass = (PsiClass)psiElement; } setNestedClass(aClass, containerClass); super.runForClass(aClass, psiMethod, context, performRunnable); }