Remove unused gtasks code
Convert fields to local variables
Remove unused return values
Apply inspections
Remove unused code