void (@NotNull Component component, Cursor cursor) { // cursor is updated by native code even if component has the same cursor, causing performance problems (IDEA-167733) if (!component.isCursorSet() || component.getCursor() != cursor) { component.setCursor(cursor); } }