XmlTag (@NotNull MavenDomProperties mavenDomProperties, @NotNull String propertyName) { XmlTag propertiesTag = mavenDomProperties.getXmlTag(); if (propertiesTag == null) return null; for (XmlTag each : propertiesTag.getSubTags()) { if (each.getName().equals(propertyName)) { return each; } } return null; }