boolean (@NotNull PsiElement element) { if (!(element instanceof GrListOrMap map)) return false; final GrNamedArgument[] namedArguments = map.getNamedArguments(); final GrExpression[] initializers = map.getInitializers(); if (initializers.length != 0) return false; for (GrNamedArgument argument : namedArguments) { final GrArgumentLabel label = argument.getLabel(); final GrExpression expression = argument.getExpression(); if (label == null || expression == null) return false; if (label.getName() == null) return false; } return true; }