Example:
def list = [1,2,3] return list
After the quick-fix is applied:
final def list = [1,2,3] return list
For more info see the same inspection in Java.