void (JqlSimpleClause clause) { JqlOperand operand = clause.getOperand(); if (operand == null) { return; } boolean operandIsListLiteral = operand instanceof JqlList; boolean operandIsListFunction = false; if (operand instanceof JqlFunctionCall functionCall) { JqlStandardFunction standardFunction = JqlStandardFunction.byName(functionCall.getFunctionName().getText()); operandIsListFunction = standardFunction != null && standardFunction.hasMultipleResults(); } boolean hasListOperand = operandIsListLiteral || operandIsListFunction; if (isListClause(clause) && !hasListOperand) { holder.newAnnotation(HighlightSeverity.ERROR, TaskBundle.message("inspection.message.expecting.list.values.here")).range(operand).create(); } boolean hasEmptyOperand = operand instanceof JqlEmptyValue; if (isEmptyClause(clause) && !hasEmptyOperand) { holder.newAnnotation(HighlightSeverity.ERROR, TaskBundle.message("inspection.message.expecting.empty.or.null.here")).range(operand).create(); } }