[Refactoring] Fixed invoking sorting imports via context menu.