Added .idea directory to ignore list
Use not deprecated method
Use not deprecated method