String (Object... args) { final String className = (String) args[0]; if (className.length() < getMinLength()) { return GroovyBundle.message("inspection.message.instance.variable.name.ref.too.short"); } else if (className.length() > getMaxLength()) { return GroovyBundle.message("inspection.message.instance.variable.name.ref.too.long"); } return GroovyBundle.message("inspection.message.instance.variable.name.ref.doesn.t.match.regex", getRegex()); }