Match similar if-branches