private boolean areModifiersEqual(@NotNull PsiModifierList modifierList) {
    PsiModifierList thisModifierList = getModifierList();
    if (thisModifierList instanceof LightModifierList && modifierList instanceof LightModifierList) {
      return Arrays.equals(((LightModifierList)thisModifierList).getModifiers(), ((LightModifierList)modifierList).getModifiers());
    }
    return Objects.equals(thisModifierList, modifierList);
  }
private boolean areModifiersEqual(@NotNull PsiModifierList modifierList)