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