boolean (@NotNull UReturnExpression expression) { //TODO possible bugs (lambdas? anonymous classes in @NonNls methods?) UElement method = UastUtils.getParentOfType(expression, UMethod.class); return isNonNlsAnnotated(method); }