String (@NotNull PsiElement scope, @NotNull PsiType type, ReplacementMode mode) { VariableNameGenerator generator = new VariableNameGenerator(scope, VariableKind.LOCAL_VARIABLE); if (mode == ReplacementMode.VALUES) { generator.byType(type).byName("value", "val", "v"); } else { // Simple entry/e name is preferred over stringStringEntry, etc. which is generated from type generator.byName("entry", "e").byType(type); } return generator.generate(true); }