unified function that finds lifecycle methods so that different modules (e.g., callgraph and directed) can refer to consistent ones