private LookupElement @Nullable [] createLookupItems(String name, ExpressionContext context, PsiNamedElement psiVariable) {
      if (psiVariable != null) {
        final TextResult insertedValue = context.getVariableValue(PRIMARY_VARIABLE_NAME);
        if (insertedValue != null) {
          final String text = insertedValue.getText();
          if (!text.isEmpty() && !Comparing.strEqual(text, name)) {
            final LinkedHashSet<String> names = new LinkedHashSet<>();
            names.add(text);
            NameSuggestionProvider.suggestNames(psiVariable, psiVariable, names);
            final LookupElement[] items = new LookupElement[names.size()];
            final Iterator<String> iterator = names.iterator();
            for (int i = 0; i < items.length; i++) {
              items[i] = LookupElementBuilder.create(iterator.next());
            }
            return items;
          }
        }
      }
      return myLookupItems;
    }
private LookupElement @Nullable [] createLookupItems(String name, ExpressionContext context, PsiNamedElement psiVariable)