void (RegExpProperty property) { super.visitRegExpProperty(property); final ASTNode categoryNode = property.getCategoryNode(); if (categoryNode == null) { return; } final String category = categoryNode.getText(); switch (category) { case "Digit", "IsDigit" -> registerProblem(property, property.isNegated() ? "\\D" : "\\d"); case "Blank", "IsBlank" -> registerProblem(property, property.isNegated() ? "[^ \\t]" : "[ \\t]"); case "Space", "IsSpace", "IsWhite_Space", "IsWhiteSpace" -> registerProblem(property, property.isNegated() ? "\\S" : "\\s"); } }