void () { addSelectionListener(() -> { if (myEventProcessingInProgress instanceof MouseEvent && shouldLogCommitSessionEvents()) { CommitSessionCollector.getInstance(myProject).logFileSelected((MouseEvent)myEventProcessingInProgress); } }); }