void (@NotNull GrExpression grExpression) { final PsiElement gstringParent = grExpression.getParent(); if (!(gstringParent instanceof GrArgumentList)) return; GrExpression[] arguments = ((GrArgumentList)gstringParent).getExpressionArguments(); if (arguments.length != 2 || !arguments[0].equals(grExpression)) return; final PsiElement grandparent = gstringParent.getParent(); if (!(grandparent instanceof GrMethodCall)) { return; } if (!isGStringType(grExpression)) return; if (!isMapPutMethod((GrMethodCall)grandparent)) return; registerError(grExpression); }