VariableNameGenerator (@Nullable PsiExpression expression) { if (expression != null) { SuggestedNameInfo info = myManager.suggestVariableName(myKind, null, expression, null, true); candidates.addAll(Arrays.asList(info.names)); } return this; }