private static PsiType getReturnType(@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;
  }
private static PsiType getReturnType(@NotNull PsiField psiField, boolean isChained)