VariableNameGenerator (@NonNls String... names) { for (String name : names) { if (name != null) { SuggestedNameInfo info = myManager.suggestVariableName(myKind, name, null, null, true); candidates.addAll(Arrays.asList(info.names)); } } return this; }