boolean (final PsiMethodCallExpression call) { PsiExpressionList argumentList = call.getArgumentList(); for (PsiExpression expression : argumentList.getExpressions()) { PsiType type = expression.getType(); if (type == null || PsiTypes.voidType().equals(type)) return true; } return false; }