LocalQuickFix (Object... infos) { final PsiTryStatement tryStatement = (PsiTryStatement)infos[0]; final boolean removeTryCatch = tryStatement.getCatchSections().length == 1 && tryStatement.getFinallyBlock() == null && tryStatement.getResourceList() == null; return new DeleteCatchSectionFix(removeTryCatch); }