private static PsiType correctType(PsiType varType) {
    if (varType instanceof PsiDisjunctionType) {
      return PsiTypesUtil.getLowestUpperBoundClassType((PsiDisjunctionType)varType);
    }
    return varType;
  }
private static PsiType correctType(PsiType varType)