// "Remove 'containsKey()' check" "true-preview" import java.util.Map; class Test { void test(Map map, String key) { if(map.containsKey(/*contains!!!*/key)) { map.remove(/*remove!!!*/key); } } }