Both Java and Groovy allow this "thing" (that is, the syntax is legal). In Groovy, this syntax supports compound assignment (despite there being just one item here...)
String left, middle, right
(left, middle, right) = ["4", "5", "6"]
Java, however, offers no compound assignment. Still, the Java Language Specifications 15.26.1 (https://docs.oracle.com/javase/specs/jls/se12/html/jls-15.html#jls-15.26.1) permits arbitrarily many surrounding parentheses:
When the expression forming the left operand is a field access e.f (§15.11), optionally surrounded by any number of paired parentheses, then:
What counts is whether full evaluation yields an access to a field (or to an array element).
do parentheses enclosing savedText do anything
No.
or are they only meant to improve readability?
To me it reduces readability. A consistent style is more important, however. Perhaps the intention was matching simple assignments to the style of compound assignments?
String single
(single) = "456"
String left, middle, right
(left, middle, right) = ["4", "5", "6"]