I'm looking at some legacy code in PhpStorm and there are some instances within the codebase where a particular function call is wrapped by another function call within an if statement e.g.
if (thisIsTrue($param1, $param2)) {
// possibly some function calls above
callThisFunction($paramA, $paramB);
// possibly some function calls below
}
I've had some success with just basic Linux find/grep commands to highlight files of interest but I would like to be able to create a structural search inspection that can find instances of callThisFunction
that aren't wrapped by a specific if statement.
Does anyone know if this is possible with the vanilla IntelliJ search template functionality?