void () { myFixture.configureByText("Test.java", """ class Test { public void test() { try { int myvar = foo(); } catch (RuntimeException ex) { } my<caret> } native int foo(); }"""); myFixture.completeBasic(); myFixture.checkResult(""" class Test { public void test() { int myvar = 0; try { myvar = foo(); } catch (RuntimeException ex) { } myvar } native int foo(); }"""); }