@Nullable
  private static String getTaskNameIfMethodDeclaresIt(GrMethodCallExpression methodCall) {
    String taskNameCandidate = getStringValueFromFirstArg(methodCall);
    if (taskNameCandidate == null) return null;
    PsiMethod resolvedMethod = methodCall.resolveMethod();
    if (resolvedMethod == null) return null;
    PsiClass containingClass = resolvedMethod.getContainingClass();
    if (containingClass == null) return null;

    String methodName = resolvedMethod.getName();
    if (declaresTaskFromTaskContainer(methodName, containingClass)
      || declaresTaskFromTaskCollection(methodName, containingClass)
      || declaresTaskFromProject(methodName, containingClass)
    ) {
      return taskNameCandidate;
    } else {
      return null;
    }
  }
@Nullable
  private static String getTaskNameIfMethodDeclaresIt(GrMethodCallExpression methodCall)