void () { assertEquals(1, StringUtil.lastIndexOf("axaxa", 'x', 0, 2)); assertEquals(1, StringUtil.lastIndexOf("axaxa", 'x', 0, 3)); assertEquals(3, StringUtil.lastIndexOf("axaxa", 'x', 0, 5)); assertEquals(2, StringUtil.lastIndexOf("abcd", 'c', -42, 99)); // #IDEA-144968 }