boolean (@NotNull GrReferenceExpression expression) { PsiFile file = expression.getContainingFile(); Boolean cachedValue = file.getUserData(KEY); if (cachedValue != null) return cachedValue; boolean res = false; for (GroovyUnresolvedHighlightFileFilter filter : GroovyUnresolvedHighlightFileFilter.EP_NAME.getExtensions()) { if (filter.isReject(file)) { res = true; break; } } file.putUserData(KEY, res); return res; }