String (boolean lookForward) { String suffixed = null; @NonNls final Set<String> candidates = this.candidates.isEmpty() ? Collections.singleton("v") : this.candidates; for (String candidate : candidates) { String name = myManager.suggestUniqueVariableName(candidate, myContext, lookForward); if (name.equals(candidate)) return name; if (suffixed == null) { suffixed = name; } } return suffixed; }