boolean (PsiVariable variable) { final PsiClass aClass = PsiUtil.resolveClassInClassTypeOnly(variable.getType()); return InheritanceUtil.isInheritor(aClass, CommonClassNames.JAVA_LANG_AUTO_CLOSEABLE); }