#KT-5513 Fix

Ignore large methods in optimizer because they lead to OutOfMemoryException