@Override
  public Comparable weigh(@NotNull final LookupElement element, @NotNull final CompletionLocation location) {
    if (element instanceof JavaRelevantChainLookupElement) {
      return ((JavaRelevantChainLookupElement)element).getChainRelevance();
    }
    return null;
  }
@Override
  public Comparable weigh(@NotNull final LookupElement element, @NotNull final CompletionLocation location)