boolean (PsiExpression expression) { return TypeUtils.expressionHasTypeOrSubtype(expression, CommonClassNames.JAVA_LANG_AUTO_CLOSEABLE) && (isStreamHoldingResource(expression) || !TypeUtils.expressionHasTypeOrSubtype(expression, ignoredTypes)) && (!ignoreGettersReturningResource || !isGetter(expression)); }