PsiType (final PsiMember member) { if (member instanceof PsiField) { return ((PsiField)member).getType(); } if (member instanceof PsiMethod) { final PsiMethod psiMethod = (PsiMethod)member; if (isSimplePropertyGetter(psiMethod)) { return psiMethod.getReturnType(); } else if (isSimplePropertySetter(psiMethod)) { return psiMethod.getParameterList().getParameters()[0].getType(); } } return null; }