private static boolean declaresTaskFromTaskCollection(String methodName, PsiClass containingClass) {
    return isInheritor(containingClass, GRADLE_API_TASK_COLLECTION)
           && "named".equals(methodName);
  }
private static boolean declaresTaskFromTaskCollection(String methodName, PsiClass containingClass)