String () { String referenceName = myRefElement.getReferenceName(); return switch (getType()) { case TRAIT -> GroovyBundle.message("create.trait", referenceName); case ENUM -> GroovyBundle.message("create.enum", referenceName); case CLASS -> GroovyBundle.message("create.class.text", referenceName); case INTERFACE -> GroovyBundle.message("create.interface.text", referenceName); case ANNOTATION -> GroovyBundle.message("create.annotation.text", referenceName); case RECORD -> GroovyBundle.message("create.record.text", referenceName); }; }