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;
    }
}
class Node {
    String getType() { return ""; }

    String foo(Node left, Node right) {
        String leftType = left.getType().substring(1);
<selection>        String rightType = right.getType().substring(1); //line comment
</selection>
        String type = "A".substring(1);
        return leftType + rightType + type;
    }
}
Trim surrounding whitespaces because they don't survive in the refactoring - test data fixed (IDEA-191738)
Java: Trim surrounding whitespaces because they don't survive in the refactoring - test data fixed (IDEA-191738)
