This doesn't work if executing the second branch and `includesClassName` is false.