private void updateSealedHierarchy() {
    if (!myBaseClass.hasModifierProperty(PsiModifier.SEALED)) return;
    SealedUtils.removeFromPermitsList(myBaseClass, myClass);
    PsiModifierList modifiers = myClass.getModifierList();
    if (modifiers == null) return;
    if (!modifiers.hasExplicitModifier(PsiModifier.NON_SEALED) || SealedUtils.hasSealedParent(myClass)) return;
    modifiers.setModifierProperty(PsiModifier.NON_SEALED, false);
  }
private void updateSealedHierarchy()