void () { disableVirtualComma(); PsiExpressionCodeFragment fragment = JavaCodeFragmentFactory.getInstance(getProject()).createExpressionCodeFragment("System.getPro<caret>", null, null, true); myFixture.configureFromExistingVirtualFile(fragment.getVirtualFile()); complete("getProperty(String key, String def)"); checkResultWithInlays("System.getProperty(<caret>)"); // At the moment, we assure that neither hints, nor comma appear. // Later we might make it work correctly for code fragments. }