void () { String s1 = """ filterActions[0] = new Action(TEXT, LifeUtil.getIcon("search")) { void test() { int a = 1; } };"""; String s2 = "LifeUtil.getIcon(\"search\")"; String s3 = "StdIcons.SEARCH_LIFE"; String expectedResult = """ filterActions[0] = new Action(TEXT, StdIcons.SEARCH_LIFE) { void test() { int a = 1; } };"""; options.setToReformatAccordingToStyle(true); options.setToShortenFQN(true); assertEquals("Replace in anonymous class parameter", expectedResult, replace(s1, s2, s3)); options.setToShortenFQN(false); options.setToReformatAccordingToStyle(false); }