Verify that the cursor is positioned inside or on a scala constructor