String (@NotNull MapLoopCondition loopCondition, @NotNull PsiElement value) { VariableNameGenerator generator = new VariableNameGenerator(value, VariableKind.PARAMETER); if (!loopCondition.isEntrySet()) { String origName = loopCondition.getIterParam().getName(); String nameCandidate = getNameCandidate(origName); if (origName.equals(nameCandidate)) return nameCandidate; generator.byName(nameCandidate); } return generator.byName("k", "key").generate(true); }