IDEA-126538  improve performance on java sources: Don't infer source method if the source file is not Groovy