PsiClass (final String s, final ConvertContext context) { if (StringUtil.isEmptyOrSpaces(s)) return null; final DomElement element = context.getInvocationElement(); final GlobalSearchScope scope = element instanceof GenericDomValue ? getScope(context) : null; return DomJavaUtil.findClass(s.trim(), context.getFile(), context.getModule(), scope); }