The only similarity between these two methods is that they use the pattern class but the string class imports any libraries it needs for those methods. I've even tried importing those libraries ...
現在アクセス不可の可能性がある結果が表示されています。
アクセス不可の結果を非表示にする現在アクセス不可の可能性がある結果が表示されています。
アクセス不可の結果を非表示にする