implicit type conversion in IDEA plugin