diff --git a/plugins/junit/src/com/intellij/execution/junit/codeInsight/JUnit5MalformedParameterizedInspection.kt b/plugins/junit/src/com/intellij/execution/junit/codeInsight/JUnit5MalformedParameterizedInspection.kt index b354b4c7f97f..a2c6bc07c3fb 100644 --- a/plugins/junit/src/com/intellij/execution/junit/codeInsight/JUnit5MalformedParameterizedInspection.kt +++ b/plugins/junit/src/com/intellij/execution/junit/codeInsight/JUnit5MalformedParameterizedInspection.kt @@ -191,7 +191,9 @@ class JUnit5MalformedParameterizedInspection : BaseJavaBatchLocalInspectionTool( holder.registerProblem(attributeValue, "Method source \'$providerName\' must have one of the following return type: Stream, Iterator, Iterable or Object[]") } - else if (hasMultipleParameters(method) && !isArgumentsInheritor(componentType) && !componentType.equalsToText(CommonClassNames.JAVA_LANG_OBJECT)) { + else if (hasMultipleParameters(method) && !isArgumentsInheritor(componentType) && + !componentType.equalsToText(CommonClassNames.JAVA_LANG_OBJECT) && + !componentType.deepComponentType.equalsToText(CommonClassNames.JAVA_LANG_OBJECT)) { holder.registerProblem(attributeValue, "Multiple parameters have to be wrapped in Arguments") } }