@Override
  public PsiPackage fromString(@Nullable String s, @NotNull ConvertContext context) {
    final GlobalSearchScope scope = getResolveScope(context.getInvocationElement());
    if (scope == null) return null;

    return super.fromString(s, context);
  }
@Override
  public PsiPackage fromString(@Nullable String s, @NotNull ConvertContext context)