In our team, there are two groups of members.
For the first group, Android Studio offers to simplify the code like below and transform redundant declaration of types to lambdas.
For the second group, Android Studio marks the simplified code as incorrect with a type mismatch compilation error. But the code still compilable.
But no one knows what settings to tweak for the second group to join the first group.
Does anyone know, what settings are responsible for this behavior?


