Current find usages correctly finds all usages through "." operator for Collection/Map - typed variables/fields, read/write filters filter reads/writes to the collection field/variable.
Sometimes it would be also useful to track reads and writes of the Collection through add/remove/set/put methods. This would probably result in additional filter buttons on the Find Usages Result display.
queries for size, empty, contains could be treated either as separate operations, or part of the 'read': the first option would really filter read operation of collection *items*, the second option would just separate collection mutations from read access.
The same feature could be useful for arrays: read from within the array and write to array element, semantic the same as for List.get() / List.set().
user: Ralph Benjamin Ruijs <email@example.com>
date: Thu Nov 20 17:33:38 2014 +0100
summary: #246630 - analyze access to collections
Does this really need to be configurable?
Integrated into 'main-silver', will be available in build *201411210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Ralph Benjamin Ruijs <firstname.lastname@example.org>
Log: #246630 - analyze access to collections
*** Bug 248273 has been marked as a duplicate of this bug. ***