void (@NotNull ActionContext context, @NotNull PsiClass myClass, @NotNull ModPsiUpdater updater) { PsiClass classToExtendFrom = myClassToExtendFromPointer != null ? myClassToExtendFromPointer.getElement() : null; PsiReferenceList extendsList = !(myClass instanceof PsiTypeParameter) && classToExtendFrom != null && myClass.isInterface() != classToExtendFrom.isInterface() ? myClass.getImplementsList() : myClass.getExtendsList(); PsiReferenceList otherList = extendsList == myClass.getImplementsList() ? myClass.getExtendsList() : myClass.getImplementsList(); if (extendsList != null) { ExtendsListFix.modifyList(extendsList, myToAdd, -1, myTypeToExtendFrom); } if (otherList != null) { ExtendsListFix.modifyList(otherList, false, -1, myTypeToExtendFrom); } }