private static boolean declaresTaskFromProject(String methodName, PsiClass containingClass) {
    return isInheritor(containingClass, GRADLE_API_PROJECT)
           && "task".equals(methodName);
  }
private static boolean declaresTaskFromProject(String methodName, PsiClass containingClass)