String () { final PsiTypeElement typeElement = myMethod.getReturnTypeElement(); if (typeElement != null) { PsiType type = typeElement.getType(); if (type.getAnnotations().length > 0) { return type.getPresentableText(true); } return typeElement.getText(); } return null; }