@Override
  public int getWeight() {
    return ReadAction.compute(() -> {
      //todo weighted
      final Object value = getValue();
      if (value instanceof PsiElement element && element.getContainingFile() != null) return 40;
      return 30;
    });
  }
@Override
  public int getWeight()