revert: don't try to remove cls annotations (EA-97810 - IOE: ClsElementImpl.cannotModifyException), normal non-Kotlin compiled element shouldn't end up here

This commit is contained in:
peter
2017-03-30 19:10:47 +02:00
parent 7110cc93e6
commit 5e2501e990
@@ -111,8 +111,7 @@ public class AddAnnotationPsiFix extends LocalQuickFixOnPsiElement {
final PsiModifierListOwner myModifierListOwner = (PsiModifierListOwner)startElement;
// e.g. PsiTypeParameterImpl doesn't have modifier list
return myModifierListOwner.isWritable() &&
myModifierListOwner.getModifierList() != null
return myModifierListOwner.getModifierList() != null
&& !AnnotationUtil.isAnnotated(myModifierListOwner, myAnnotation, false, false);
}