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