void (@NotNull PsiElement element, @NotNull ActionContext context, @NotNull ModPsiUpdater updater) { PsiElement parent = element.getParent(); if (parent instanceof GrVariable) { ((GrVariable)parent).setType(null); } else if (parent instanceof GrVariableDeclaration) { ((GrVariableDeclaration)parent).setType(null); } else if (parent instanceof GrMethod) { ((GrMethod)parent).setReturnType(null); } }