boolean (@NotNull String text) { MavenDomProjectModel project = getSelectedProject(); if (isPropertyExist(text, project)) return true; for (MavenDomProjectModel child : MavenDomProjectProcessorUtils.getChildrenProjects(project)) { if (isPropertyExist(text, child)) return true; } for (MavenDomProjectModel parent : MavenDomProjectProcessorUtils.collectParentProjects(project)) { if (isPropertyExist(text, parent)) return true; } return false; }