void () { Registry.get("ide.ignore.call.result.inspection.honor.inferred.pure").setValue(true, getTestRootDisposable()); doTest( """ class Test { private static <T> T checkNotNull(T reference) { if (reference == null) { throw new NullPointerException(); } return reference; } \s private static String twice(String s) { return s+s; } \s void test(String string) { checkNotNull(string); /*Result of 'Test.twice()' is ignored*/twice/**/("foo"); /*Result of 'Test.twice()' is ignored*/twice/**/("bar"); } } """); }