PsiType () { if (myReturnTypeField != null) { try { return ((PsiTypeCodeFragment)myReturnTypeCodeFragment).getType(); } catch (PsiTypeCodeFragment.TypeSyntaxException | PsiTypeCodeFragment.NoTypeException e) { return null; } } return null; }