private static boolean declaresTaskFromTaskContainer(String methodName, PsiClass containingClass) {
    return isInheritor(containingClass, GRADLE_API_TASK_CONTAINER)
           && ("create".equals(methodName) || "register".equals(methodName));
  }
private static boolean declaresTaskFromTaskContainer(String methodName, PsiClass containingClass)