You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: use_isnan.rs
    path of file: ./repos/oxc/crates/oxc_linter/src/rules/eslint
    
    the code of the file until where you have to start completion: use oxc_ast::{
    ast::{Argument, ChainElement, Expression},
    AstKind,
};
use oxc_diagnostics::{
    miette::{self, Diagnostic},
    thiserror::Error,
};
use oxc_macros::declare_oxc_lint;
use oxc_span::{GetSpan, Span};

use crate::{context::LintContext, rule::Rule, AstNode};

#[derive(Debug, Error, Diagnostic)]
enum UseIsnanDiagnostic {
    #[error("eslint(use-isnan): Requires calls to isNaN() when checking for NaN")]
    #[diagnostic(sev
    
fn is_target_callee<'a>(callee: &'a Expression<'a>) -> Option<&'static str> {
    const TARGET_METHODS: [&str; 2] = ["indexOf", "lastIndexOf"];
    let callee = callee.get_inner_expression();
    match callee {
        Expression::MemberExpression(expr) => expr.static_property_name().and_then(|property| {
            TARGET_METHODS.iter().find(|method| **method == property).copied()
        }),
        Expression::ChainExpression(chain) => {
            if let ChainElement::MemberExpression(expr) = &chain.expression {
                expr.static_property_name().and_then(|property| {
                    TARGET_METHODS.iter().find(|method| **method == property).copied()
                })
            } else {
                None
            }
        }
        _ => None,
    }
}