public Description matchNewClass(NewClassTree newClassTree, VisitorState state) {
if (!MATCHER.matches(newClassTree, state)) {
return Description.NO_MATCH;
}
StatementTree parent = (StatementTree) state.getPath().getParentPath().getLeaf();
boolean isLastStatement = anyOf(
new Enclosing.BlockOrCase<>(lastStatement(Matchers.<StatementTree>isSame(parent))),
// it could also be a bare if statement with no braces
parentNode(parentNode(kindIs(IF))))