PsiTypeCodeFragment (final String typeText, PsiElement context) { final JavaCodeFragmentFactory factory = JavaCodeFragmentFactory.getInstance(myContext.getProject()); return factory.createTypeCodeFragment(typeText, context, true, JavaCodeFragmentFactory.ALLOW_ELLIPSIS); }