public static @Nullable Set<String> extractNoqaCodes(@NotNull PsiComment comment) {
    String commentText = comment.getText();
    if (commentText == null) {
      return null;
    }

    int noqaOffset = commentText.toLowerCase(Locale.ENGLISH).indexOf("# noqa");
    if (noqaOffset < 0) {
      return null;
    }

    String noqaSuffix = commentText.substring(noqaOffset);
    Matcher matcher = NOQA_COMMENT_PATTERN.matcher(noqaSuffix);
    if (matcher.matches()) {
      String codeList = matcher.group("codes");
      return codeList == null ? Collections.emptySet() : Set.of(codeList.split("[,\\s]+"));
    }
    return null;
  }
public static @Nullable Set<String> extractNoqaCodes(@NotNull PsiComment comment)