Converter (@NotNull GenericDomValue domElement) { Project project = domElement.getManager().getProject(); JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(project); PsiClass psiClass = psiFacade.findClass(myType, GlobalSearchScope.allScope(project)); if (psiClass != null) { GenericDomValueConvertersRegistry convertersRegistry = MavenDomConvertersRegistry.getInstance().getConvertersRegistry(); return convertersRegistry.getConverter(domElement, psiFacade.getElementFactory().createType(psiClass)); } return null; }