Optimize list comparison method?
Some comments:

&amp;&amp; modelList.size() &gt; 1


this check is redundant, in fact

if (prevList.size() &gt; 1 &amp;&amp; modelList.size() &gt; 1 &amp;&amp; prevList.size() == modelList.size()) {


this whole check doesn't depend on the for variable, and can be hoisted outside the for.

The big if that starts at the first line can be inverted to reduce nesting.