IDEA-116506 File Templates: can not delete duplicated template
EJB method hierarchy shouldn't affect completion statistics (IDEA-117673)
better code per review suggestion
fix regress IDEA-119720 : schedule for update if file isn't too large