PsiClass (@Nullable String name, @NotNull DomElement element, boolean searchAnonymous) { assert element.isValid(); if (DomUtil.hasXml(element)) { return findClass(name, DomUtil.getFile(element), element.getModule(), element.getResolveScope(), searchAnonymous); } return null; }