final PsiFile file = myAnnotation.getContainingFile();
final Editor editor = CodeInsightUtil.positionCursor(project, file, myAnnotation);
if (editor != null) {
new WriteCommandAction(project, file) {
protected void run(@NotNull Result result) throws Throwable {
final PsiNameValuePair valuePair = selectAnnotationAttribute();
if (null != valuePair) {
// delete this parameter
valuePair.delete();
}
if (null != myNewValue) {
//add new parameter
final PsiElementFactory elementFactory = JavaPsiFacade.getInstance(myAnnotation.getProject()).getElementFactory();