Changed api to use file type.
Added idea plugin