                 continue
             }
 
-            switch kind {
-            case SwiftDeclarationKind.varGlobal.rawValue,
-                 SwiftDeclarationKind.varClass.rawValue,
-                 SwiftDeclarationKind.varLocal.rawValue,
-                 SwiftDeclarationKind.varStatic.rawValue,
-                 SwiftDeclarationKind.varInstance.rawValue:
+            if SwiftDeclarationKind.varKinds.contains(where: { $0.rawValue == kind }) {
                 guard let offset = statement.offset,
                       let length = statement.length else {
                     break

            "a = 5\n\nvar x = 1\n",
            "struct X {\n\tvar a = 0\n}\n",
            "let a = 1 +\n\t2\nlet b = 5\n",
            "var x: Int {\n\treturn 0\n}\n"
        ],
        triggeringExamples: [
            "var x = 1\n↓x = 2\n",
            "a = 5\n↓var x = 1\n",
            "struct X {\n\tlet a\n\t↓func x() {}\n}\n",
            "var x: Int {\n\tlet a = 0\n\treturn a\n}\n"
        ]
    )


                    }
                }
                result.formUnion(lines)
            }

            let substructure = statement.substructure
