public static ResolveResult @NotNull [] createResults(PsiElement @Nullable ... elements) {
    if (elements == null || elements.length == 0) return EMPTY_ARRAY;

    final ResolveResult[] results = new ResolveResult[elements.length];
    for (int i = 0; i < elements.length; i++) {
      results[i] = new PsiElementResolveResult(elements[i]);
    }
    return results;
  }
public static ResolveResult @NotNull [] createResults(PsiElement @Nullable ... elements)