void (PsiClass aClass, PsiClass containerClass) { if (containerClass != null && !aClass.isInheritor(containerClass, true)) { for (PsiClass innerClass : aClass.getAllInnerClasses()) { //when there are multiple inners with the same super - we just take the first for now; //otherwise chooser should have more than one step if (InheritanceUtil.isInheritorOrSelf(innerClass, containerClass, true)) { ((T)configuration.getConfiguration()).withNestedClass(innerClass); break; } } } }