String (@NotNull PsiExpression context, @Nullable PsiType type) { final UniqueNameGenerator nameGenerator = new UniqueNameGenerator(); final JavaCodeStyleManager codeStyleManager = JavaCodeStyleManager.getInstance(context.getProject()); final String name = codeStyleManager.suggestUniqueVariableName( codeStyleManager.suggestVariableName(VariableKind.LOCAL_VARIABLE, null, null, type).names[0], context, false); return nameGenerator.generateUniqueName(name); }