PsiType (@NotNull PsiField psiField, boolean isChained) { PsiType result = PsiTypes.voidType(); if (!psiField.hasModifierProperty(PsiModifier.STATIC) && isChained) { final PsiClass fieldClass = psiField.getContainingClass(); if (null != fieldClass) { result = PsiClassUtil.getTypeWithGenerics(fieldClass); } } return result; }