boolean (@NotNull Project project, @Nullable String value, @NotNull Set<? super PsiModifierListOwner> nonNlsTargets, @NotNull UExpression usage) { if (isInNonNlsCallChain(usage, nonNlsTargets)) { return true; } if (isSafeStringMethod(usage, nonNlsTargets)) { return true; } if (isPassedToNonNls(usage, nonNlsTargets)) { return true; } if (ignoreForAssertStatements && isArgOfAssertStatement(usage)) { return true; } if (ignoreForExceptionConstructors && isExceptionArgument(usage)) { return true; } if (ignoreForEnumConstants && isArgOfEnumConstant(usage)) { return true; } if (!ignoreForExceptionConstructors && isArgOfSpecifiedExceptionConstructor(usage, ignoreForSpecifiedExceptionConstructors.split(","))) { return true; } if (ignoreForJUnitAsserts && isArgOfJUnitAssertion(usage)) { return true; } if (ignoreForClassReferences && value != null && isClassRef(project, value)) { return true; } if (ignoreForPropertyKeyReferences && value != null && !PropertiesImplUtil.findPropertiesByKey(project, value).isEmpty()) { return true; } if (ignoreToString && isToString(usage)) { return true; } return false; }