# Replacing references to a type with references to one of its supertypes

To replace references to a type with references to one of its supertypes:

- In a Java editor or a Java view, select the type
- Do one of the following:
  - From the menu bar, select Refactor > Use Supertype Where Possible or
  - From the editor's pop-up menu, select Refactor > Use Supertype Where Possible

Refactoring actions
Refactoring dialogs
Java preferences