AddCatchBodyFix (PsiCodeBlock block) { if (ControlFlowUtils.isEmpty(block, true, true)) { try { FileTemplate template = FileTemplateManager.getInstance(holder.getProject()).getCodeTemplate(JavaTemplateUtil.TEMPLATE_CATCH_BODY); if (!StringUtil.isEmptyOrSpaces(template.getText())) { return new AddCatchBodyFix(); } } catch (IllegalStateException ignored) { } } return null; }