PsiCodeFragment () { final String returnTypeText = StringUtil.notNullize(myMethod.getReturnTypeText()); final JavaCodeFragmentFactory factory = JavaCodeFragmentFactory.getInstance(myProject); return factory.createTypeCodeFragment(returnTypeText, getMethod(), true, JavaCodeFragmentFactory.ALLOW_VOID); }