void (BlockAlignmentProcessor.Context context) { ASTNode node = context.targetBlock().getNode(); Language language = node != null ? node.getPsi().getLanguage() : null; String message = (language != null ? language.getDisplayName() + ": " : "") + "Can't align block " + context.targetBlock(); LOG.error(message, new Throwable(), CoreAttachmentFactory.createAttachment(context.document())); }