void (PsiSubstitutor substitutor, MemberInfo info) { if (Boolean.FALSE.equals(info.getOverrides())) { PsiClass aClass = (PsiClass)info.getMember(); if (myTargetSuperClass instanceof GrTypeDefinition) { addClassToSupers(info, aClass, substitutor, (GrTypeDefinition)myTargetSuperClass); } } else { GrTypeDefinition aClass = (GrTypeDefinition)info.getMember(); GroovyPsiElementFactory elementFactory = GroovyPsiElementFactory.getInstance(myProject); replaceMovedMemberTypeParameters(aClass, PsiUtil.typeParametersIterable(mySourceClass), substitutor, elementFactory); fixReferencesToStatic(aClass); PsiMember movedElement = (PsiMember)myTargetSuperClass.addAfter(convertClassToLanguage(aClass, myTargetSuperClass.getLanguage()), null); myMembersAfterMove.add(movedElement); deleteMemberWithDocComment(aClass); } }