public static @Nullable PsiElement getStatementToolSuppressedIn(@NotNull PsiElement place,
                                                                  @NotNull String toolId,
                                                                  @NotNull Class<? extends PsiElement> statementClass,
                                                                  @NotNull Pattern suppressInLineCommentPattern) {
    PsiElement statement = PsiTreeUtil.getNonStrictParentOfType(place, statementClass);
    if (statement != null) {
      PsiElement prev = PsiTreeUtil.skipWhitespacesBackward(statement);
      if (prev instanceof PsiComment) {
        String text = prev.getText();
        Matcher matcher = suppressInLineCommentPattern.matcher(text);
        if (matcher.matches() && isInspectionToolIdMentioned(matcher.group(1), toolId)) {
          return prev;
        }
      }
    }
    return null;
  }
public static @Nullable PsiElement getStatementToolSuppressedIn(@NotNull PsiElement place,
                                                                  @NotNull String toolId,
                                                                  @NotNull Class<? extends PsiElement> statementClass,
                                                                  @NotNull Pattern suppressInLineCommentPattern)