@Nullable
    private static PsiModifierList getFieldModifierList(PsiElement element) {
      PsiElement parent = element.getParent();
      if (!(parent instanceof PsiWhileStatement whileStatement)) return null;
      PsiExpression condition = whileStatement.getCondition();
      PsiField field = getFieldIfSimpleFieldComparison(condition);
      if (field == null) return null;
      return field.getModifierList();
    }
@Nullable
    private static PsiModifierList getFieldModifierList(PsiElement element)