Reports vararg method calls that use a ternary operator with mixed array and non-array branches.

When compiled, both branches are wrapped in arrays. As a result, the array branch is turned into a two-dimensional array, which may indicate a problem.

The quick-fix wraps the non-array branch in an array to prevent the compiler from doing the conversion.

Example:

// reported call
method(condition ? new String[] {"arg1"} : "arg2");
// after the quick-fix
method(condition ? new String[] {"arg1"} : new Object[] {"arg2"});

New in 2020.3