SONARPLUGINS-3378 Slightly improve implementation
SONARPLUGINS-3367 Slightly improve implementation
SONARPLUGINS-3364 Slightly change implementation
SONARPLUGINS-3370 Change implementation to be more readable
SONARPLUGINS-3362 Replace use of LinkedList for ArrayList