VariableNameGenerator (@Nullable PsiType type) { if (type != null) { SuggestedNameInfo info = myManager.suggestVariableName(myKind, null, null, type, true); candidates.addAll(Arrays.asList(info.names)); if (type.equals(PsiTypes.intType())) { candidates.add("j"); candidates.add("k"); } } return this; }