void () { final PsiTypeParameter typeParameter = getTypeParameter(); WriteCommandAction.runWriteCommandAction(null, () -> typeParameter.getExtendsList().getReferenceElements()[0].delete()); check(); }