void (final @NotNull PyArgumentList node) { //PY-5588 if (node.getParent() instanceof PyClass) { final boolean isPython2 = LanguageLevel.forElement(node).isPython2(); if (isPython2 || myVersionsToProcess.stream().anyMatch(LanguageLevel::isPython2)) { Arrays .stream(node.getArguments()) .filter(PyKeywordArgument.class::isInstance) .forEach(expression -> myHolder.registerProblem(expression, PyPsiBundle.message("INSP.compatibility.this.syntax.available.only.since.py3"), !isPython2 ? ProblemHighlightType.GENERIC_ERROR_OR_WARNING : ProblemHighlightType.GENERIC_ERROR)); } } }