def check(method = :warn)
      raise 'Unsupported method' unless %i[message warn fail].include?(method)
      @nslogs = []
      @prints = []

      check_files files_of_interest

      print_logs method
    end
def check(method = :warn)
      raise 'Unsupported method' unless %i[message warn fail].include?(method)
      @nslogs = []
      @prints = []

      check_files files_of_interest

      print_logs method
    end
Checks if in the changed code `NSLog` or `print` are used.
 @param method = :warn [Symbol] Used method to indicate log method usage.
   By default `:warn`. Possible values: `:message`, `:warn`, `:fail`

 @return [Void]