Records being allowed in methods has been great for me when doing things like path finding. Makes it easy to write something like:
record Node(int cost, int row, int col){}
var pq = new PriorityQueue<Node>(Comparator.comparingInt(Node::cost));