String[] (@NotNull GrExpression expr, NameValidator validator, boolean forStaticVariable) { Set<String> possibleNames = new LinkedHashSet<>(); PsiType type = expr.getType(); generateNameByExpr(expr, possibleNames, validator, forStaticVariable); if (type != null && !PsiTypes.voidType().equals(type)) { generateVariableNameByTypeInner(type, possibleNames,validator); } possibleNames.remove(""); if (possibleNames.isEmpty()) { possibleNames.add(validator.validateName("var", true)); } return ArrayUtilRt.toStringArray(possibleNames); }