private static boolean hasNonVoid(ExpectedTypeInfo[] expectedInfos) {
    boolean hasNonVoid = false;
    for (ExpectedTypeInfo info : expectedInfos) {
      if (!PsiTypes.voidType().equals(info.getType())) {
        hasNonVoid = true;
      }
    }
    return hasNonVoid;
  }
private static boolean hasNonVoid(ExpectedTypeInfo[] expectedInfos)