* @param node the if node that we want to check.
* @return null if the passed node is not
*/
public static boolean isIfMAinNode(If node) {
if (node.test instanceof Compare) {
Compare compareNode = (Compare) node.test;
// handcrafted structure walking
if (compareNode.left instanceof Name && ((Name) compareNode.left).id.equals("__name__")
&& compareNode.ops != null && compareNode.ops.length == 1 && compareNode.ops[0] == Compare.Eq) {
if (compareNode.comparators != null && compareNode.comparators.length == 1