Add check for disallowing final and static fields.