NlsInfo (@NotNull UVariable owner) { for (UAnnotation annotation : owner.getUAnnotations()) { NlsInfo info = fromAnnotation(annotation); if (info != NlsUnspecified.UNKNOWN) { return info; } info = fromMetaAnnotation(annotation.resolve()); if (info != NlsUnspecified.UNKNOWN) { return info; } } return NlsUnspecified.UNKNOWN; }