class Node {
    String getType() { return ""; }

    String foo(Node left, Node right) {
        String leftType = left.getType().substring(1);
<selection>        String rightType = right.getType().substring(1);
</selection>
        String type = "A".substring(1);
        return leftType + rightType + type;
    }
}
@@ -205,16 +205,31 @@
 ring(1);
+ //line comment
 %0A%3C/selec

Trim surrounding whitespaces because they don't survive in the refactoring - test data fixed (IDEA-191738)