             "let first = myList.first(where: { $0 % 2 == 0 })\n",
             "let first = myList.first { $0 % 2 == 0 }\n"
         ],
-
         triggeringExamples: [
             "↓myList.first { $0 % 2 == 0 } != nil\n",
             "↓myList.first(where: { $0 % 2 == 0 }) != nil\n",

//  SwiftLint
//
//  Created by Samuel Susla on 17/09/17.
//  Copyright © 2016 Realm. All rights reserved.
//

import Foundation

        }
    }

    private func methodCall(forByteOffset byteOffset: Int, excludingOffset: Int,
                            dictionary: [String: SourceKitRepresentable],
                            predicate: ([String: SourceKitRepresentable]) -> Bool) -> Int? {

        if let kindString = dictionary.kind,
            SwiftExpressionKind(rawValue: kindString) == .call,
            let bodyOffset = dictionary.bodyOffset,
            let bodyLength = dictionary.bodyLength,
            let offset = dictionary.offset {
            let byteRange = NSRange(location: bodyOffset, length: bodyLength)

            if byteRange.contains(byteOffset) && !byteRange.contains(excludingOffset)
                && predicate(dictionary) {
                return offset
            }
        }
