boolean (@NotNull GrReferenceExpression expression) { final PsiType psiType = GradleResolverUtil.getTypeOf(expression); if (psiType == null) { PsiElement child = expression.getFirstChild(); if (child == null) return false; PsiReference reference = child.getReference(); if (reference instanceof GrReferenceExpression) { PsiType type = ((GrReferenceExpression)reference).getType(); if (type != null) { return InheritanceUtil.isInheritor(type, GRADLE_API_EXTRA_PROPERTIES_EXTENSION); } } return false; } return false; }