PsiTypeElement () { PsiField firstField = findFirstFieldInDeclaration(); if (firstField != this){ return firstField.getTypeElement(); } return (PsiTypeElement)getNode().findChildByRoleAsPsiElement(ChildRole.TYPE); }