void (@NotNull PyKeyValuePattern keyValuePattern) { PyPattern keyPattern = keyValuePattern.getKeyPattern(); if (!(keyPattern instanceof PyValuePattern || keyPattern instanceof PyLiteralPattern)) { markError(keyPattern, PyPsiBundle.message("ANN.patterns.key.pattern.can.only.be.value.or.literal.pattern")); } }