XmlTag (@NotNull final String propertyName, @NotNull MavenDomProjectModel projectDom, @NotNull final Project project) { SearchProcessor<XmlTag, MavenDomProperties> searchProcessor = new SearchProcessor<>() { @Override protected XmlTag find(MavenDomProperties element) { return findProperty(element, propertyName); } }; processProperties(projectDom, searchProcessor, project); return searchProcessor.myResult; }