@Override
    @NotNull
    public String buildErrorString(Object... args) {
        final String className = (String) args[0];
        if (className.length() < getMinLength()) {
            return GroovyBundle.message("inspection.message.static.variable.name.ref.too.short");
        } else if (className.length() > getMaxLength()) {
            return GroovyBundle.message("inspection.message.static.variable.name.ref.too.long");
        }
        return GroovyBundle.message("inspection.message.static.variable.name.ref.doesnt.match.regex", getRegex());
    }
@Override
    @NotNull
    public String buildErrorString(Object... args)