Add deprecated annotation to Util.getSize