Added special handling for "else if" and "if (...) keyword" to avoid recommendations that would break code.