boolean (@NotNull UExpression expression, final Set<? super PsiModifierListOwner> nonNlsTargets) { NlsInfo info = NlsInfo.forExpression(JavaI18nUtil.getTopLevelExpression(expression, false)); if (info.getNlsStatus() == ThreeState.NO) return true; if (info instanceof NlsInfo.NlsUnspecified) { PsiModifierListOwner candidate = ((NlsInfo.NlsUnspecified)info).getAnnotationCandidate(); if (candidate instanceof PsiVariable && ignoreAssignedToConstants && candidate.hasModifierProperty(PsiModifier.STATIC) && candidate.hasModifierProperty(PsiModifier.FINAL)) { return true; } ContainerUtil.addIfNotNull(nonNlsTargets, candidate); } return false; }