# Create new method

Last modified: 17 June 2024

Required plugin: [UML](/content/help/idea/managing-plugins.html)

Access: UML Class diagram - Context menu of a node element \| New \| Method  
`Alt`  `Insert`

For the how-to information, refer to [UML class diagrams](/content/help/idea/class-diagram.html)

| Item          | Description                                                                                                                                                 |
|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Name          | Use this field to modify the method name.                                                                                                                |
| Return type   | Use this field to modify the method return type. <br>[Code completion](/content/help/idea/auto-completing-code.html) `Ctrl`  `Space` is available in this field, in the Type column of the Parameters area, and in the exception type list in the Exceptions area. |
| Parameters    |                                                                                                                                                             |
| Type          | Specify the parameter type. <br>Note that [code completion](/content/help/idea/auto-completing-code.html) works here. As you type, the suggestion list shrinks to show the matching options. Non-existent type is marked as a syntax error. |
| Name          | Specify the parameter name.                                                                                                                                 |
| Add/Remove    | Use these buttons to add/remove parameters.                                                                                                                |
| Move Up/Down  | Use these buttons to reorder parameters by moving them up or down in the parameter list.                                                                     |
| Visibility     | Select one of the options to change visibility scope of the method.                                                                                         |
| Abstract       | If this checkbox is selected, the `abstract` modifier is added to the method signature.                                                                       |
| Exceptions     |                                                                                                                                                             |
| Add/Remove    | Use these buttons to add/remove exceptions thrown by the method. For each new exception, specify its type.                                                    |
| Move Up/Down  | Use these buttons to reorder exceptions by moving them up or down in the list.                                                                               |
| Signature Preview | This read-only area shows the draft method signature as you fill in the dialog fields.                                                                    |
