static @Nullable String getTaskNameIfContains(PsiElement element) {
    String taskNameCandidate = getTaskNameCandidate(element);
    if (isEmpty(taskNameCandidate)) return null;

    List<String> tasks = getTasksTarget(element);
    if (!tasks.isEmpty() && tasks.contains(taskNameCandidate)) {
      return taskNameCandidate;
    }
    return null;
  }
static @Nullable String getTaskNameIfContains(PsiElement element)