void () { configureFromFileText("A.java", """ public class A { public static void foo(String param1, String param2) { } public static void main(String[] args) { String param1 = args[0]; String param2 = args[1]; foo(<caret>); } }""" ); performSmartCompletion(); select(Lookup.NORMAL_SELECT_CHAR, getSelected()); checkResultByText( """ public class A { public static void foo(String param1, String param2) { } public static void main(String[] args) { String param1 = args[0]; String param2 = args[1]; foo(param1, <caret>); } }""" ); }