In IntelliJ, if I use a jQuery selector such as:
$(\'#roleField option\').each(function() { // impl omitted });
The selector is highlighted
Try to use .find() here:
.find()
$('#roleField').find('option').each(function() { // impl omitted });
Your warning seem like related to efficiency of the selector.
Related thread