void (@NotNull ActionContext context, @NotNull PsiTypeParameter typeParameter, @NotNull ModPsiUpdater updater) { PsiReferenceList extendsList = typeParameter.getExtendsList(); if (!(myTypePointer.getType() instanceof PsiClassType classType)) return; ExtendsListFix.modifyList(extendsList, false, -1, classType); ExtendsListFix.modifyList(extendsList, true, 0, classType); }