Add idea plugin to gradle
Add externalRepresentation method