GradleProp (@NotNull GradleExtensionsData extensionsData, String propName) { GradleProp prop = extensionsData.properties.get(propName); if (prop != null) return prop; if (extensionsData.parent != null && extensionsData.myGradleProject != null) { GradleExtensionsData parentData = extensionsData.myGradleProject.extensions.get(extensionsData.parent); if (parentData != null) { return findProperty(parentData, propName); } } return null; }