GradleProject (@NotNull PsiElement element) { final PsiFile containingFile = element.getContainingFile().getOriginalFile(); final Project project = containingFile.getProject(); return getInstance(project).getRootGradleProject(getRootProjectPath(element)); }