How do I use OptiFine with Forge?

How do I use OptiFine with Forge?

See also  What is number 42 on the impossible quiz?