Better set Error Prone's "EqualsIncompatibleType" check to ERROR
Let’s consider the following example: var list = List.of(1); var first1 = list.stream().findFirst(); var first2 = list.getFirst(); if (Objects.equals(first1, first2)) { // compiles, just warning i...