When there's an array of the expected type in the context, invoke the Type-Matching code completion (&shortcut:SmartTypeCompletion;) twice. The IDE will suggest getting an element from this array.