Detects declaration statements with explicit types that can use 'val' instead.