PsiElement () { final String resolveId = getResolveValue(); if (StringUtil.isEmptyOrSpaces(resolveId)) return null; final CommonProcessors.FindProcessor<Extension> resolveProcessor = new CommonProcessors.FindFirstProcessor<>(); processCandidates(resolveProcessor, resolveId); final Extension value = resolveProcessor.getFoundValue(); if (value == null) return null; final DomTarget target = DomTarget.getTarget(value, getNameElement(value)); return target != null ? PomService.convertToPsi(target) : value.getXmlElement(); }