public @Nullable PsiElement getCompletionContext() {
    PsiReference contextRef = getContextReference();
    if (contextRef == null) {
      return JavaPsiFacade.getInstance(getElement().getProject()).findPackage("");
    }
    return contextRef.resolve();
  }
public @Nullable PsiElement getCompletionContext()