void (List<?> list) { if(<warning descr="Can be replaced with 'list.size() != 2'">list.size() == 0 || list.size() == 1 || list.size() > 2</warning>) {} if(<warning descr="Can be replaced with 'list.size() != 1'">list.isEmpty() || list.size() > 1</warning>) {} }