boolean (@NotNull PsiExpression context) { PsiClassType fileNotFoundType = TypeUtils.getType("java.io.FileNotFoundException", context); ExceptionUtil.HandlePlace place = ExceptionUtil.getHandlePlace(context, fileNotFoundType, null); ExceptionUtil.HandlePlace.TryCatch fileNotFoundCatch = ObjectUtils.tryCast(place, ExceptionUtil.HandlePlace.TryCatch.class); if (fileNotFoundCatch == null) return false; PsiParameter catchParameter = fileNotFoundCatch.getParameter(); if (catchParameter == null) return false; PsiClassType ioException = TypeUtils.getType("java.io.IOException", context); return !TypeConversionUtil.isAssignable(catchParameter.getType(), ioException); }