mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
enable ObjectsRequireNonNullIntention in read-only files
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@ public class ObjectsRequireNonNullIntention extends Intention {
|
||||
return false;
|
||||
}
|
||||
final PsiAnnotation annotation = NullableNotNullManager.getInstance(variable.getProject()).getNotNullAnnotation(variable, true);
|
||||
if (annotation != null && annotation.isWritable()) {
|
||||
if (annotation != null && !AnnotationUtil.isExternalAnnotation(annotation) && !AnnotationUtil.isInferredAnnotation(annotation)) {
|
||||
return true;
|
||||
}
|
||||
final PsiStatement referenceStatement = PsiTreeUtil.getParentOfType(referenceExpression, PsiStatement.class);
|
||||
|
||||
Reference in New Issue
Block a user