void (@NotNull Project project, @NotNull PsiElement extendClassIdentifier, @NotNull ModPsiUpdater updater) { final PsiClass element = (PsiClass)extendClassIdentifier.getParent(); if (element == null) { return; } final PsiReferenceList extendsList = element.getExtendsList(); if (extendsList == null) { return; } final PsiJavaCodeReferenceElement[] referenceElements = extendsList.getReferenceElements(); for (PsiJavaCodeReferenceElement referenceElement : referenceElements) { referenceElement.delete(); } }