void (@NotNull Project project, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { final PsiElement element = startElement.getParent(); if (!(element instanceof PsiClass aClass)) { return; } final PsiReferenceList implementsList = aClass.getImplementsList(); if (implementsList == null) { return; } final PsiClass cloneableClass = ClassUtils.findClass(CommonClassNames.JAVA_LANG_CLONEABLE, element); if (cloneableClass == null) { return; } final PsiJavaCodeReferenceElement[] referenceElements = implementsList.getReferenceElements(); for (PsiJavaCodeReferenceElement referenceElement : referenceElements) { final PsiElement target = referenceElement.resolve(); if (cloneableClass.equals(target)) { referenceElement.delete(); return; } } }