add auto cancel by clicking IntelliJ IDEA