Buggy code:
public class DFormatAction extends AnAction implements DumbAware { private static final String NOTIFICATION_TITLE = "Reformat<seq2seq4repair_space>code<seq2seq4repair_space>with<seq2seq4repair_space>DFormat" ; private static final Logger LOG = Logger . getInstance ( DFormatAction . class ) ; @ Override public void update ( AnActionEvent e ) { } @ Override public void actionPerformed ( AnActionEvent e ) { final PsiFile psiFile = e . getData ( PSI_FILE ) ; final Project project = getEventProject ( e ) ; if ( project == null ) return ; if ( ! ( psiFile instanceof DLanguageFile ) ) return ; VirtualFile virtualFile = psiFile . getVirtualFile ( ) ; if ( virtualFile == null ) return ; final String groupId = e . getPresentation ( ) . getText ( ) ; try { GeneralCommandLine commandLine = new GeneralCommandLine ( ) ; final String stylishPath = DFORMAT_KEY . getPath ( project ) ; final String stylishFlags = DFORMAT_KEY . getFlags ( project ) ; if ( ( stylishPath == null ) || ( stylishPath . isEmpty ( ) ) ) { <START_BUG> Bus . notify ( new com . intellij . notification . Notification ( groupId , DFormatAction . NOTIFICATION_TITLE , ( "DFormat<seq2seq4repair_space>executable<seq2seq4repair_space>path<seq2seq4repair_space>is<seq2seq4repair_space>empty" + "<br//><a<seq2seq4repair_space>href='configureDTools'>Configure<//a>" ) , NotificationType . WARNING , new net . masterthought . dlanguage . utils . DToolsNotificationListener ( project ) ) , project ) ; <END_BUG> return ; } commandLine . setExePath ( stylishPath ) ; commandLine . getParametersList ( ) . addParametersString ( stylishFlags ) ; final VirtualFile backingFile = psiFile . getVirtualFile ( ) ; if ( backingFile == null ) return ; String backingFilePath = backingFile . getCanonicalPath ( ) ; if ( backingFilePath == null ) return ; commandLine . addParameter ( backingFilePath ) ; commandLine . setWorkDirectory ( backingFile . getParent ( ) . getCanonicalPath ( ) ) ; ApplicationManager . getApplication ( ) . saveAll ( ) ; final String commandLineString = commandLine . getCommandLineString ( ) ; OSProcessHandler handler = new OSProcessHandler ( commandLine . createProcess ( ) , commandLineString ) ; handler . addProcessListener ( new CapturingProcessAdapter ( ) { @ Override public void processTerminated ( @ NotNull final ProcessEvent event ) { List < String > errorDetection = getOutput ( ) . getStderrLines ( ) ; if ( ! ( errorDetection . isEmpty ( ) ) ) { String firstLine = errorDetection . get ( 0 ) ; if ( firstLine . startsWith ( "Language.D.DFormat.Parse.parseModule:" ) ) { String output = firstLine . split ( ":" , 2 ) [ 1 ] ; Bus . notify ( new com . intellij . notification . Notification ( groupId , "DFormat<seq2seq4repair_space>error." , output , NotificationType . ERROR ) , project ) ; return ; } return ; } final String text = getOutput ( ) . getStdout ( ) ; ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { @ Override public void run ( ) { try { final Document document = PsiDocumentManager . getInstance ( project ) . getDocument ( psiFile ) ; if ( document == null ) return ; CommandProcessor . getInstance ( ) . executeCommand ( project , new Runnable ( ) { @ Override public void run ( ) { ApplicationManager . getApplication ( ) . runWriteAction ( new Runnable ( ) { @ Override public void run ( ) { document . setText ( text ) ; } } ) ; } } , DFormatAction . NOTIFICATION_TITLE , "" , document ) ; Bus . notify ( new com . intellij . notification . Notification ( groupId , DFormatAction . NOTIFICATION_TITLE , ( ( psiFile . getName ( ) ) + "<seq2seq4repair_space>formatted<seq2seq4repair_space>with<seq2seq4repair_space>DFormat." ) , NotificationType . INFORMATION ) , project ) ; } catch ( Exception ex ) { Bus . notify ( new com . intellij . notification . Notification ( groupId , ( ( "Formatting<seq2seq4repair_space>" + ( psiFile . getName ( ) ) ) + "<seq2seq4repair_space>with<seq2seq4repair_space>DFormat<seq2seq4repair_space>failed." ) , ExceptionUtil . getUserStackTrace ( ex , DFormatAction . LOG ) , NotificationType . ERROR ) , project ) ; DFormatAction . LOG . error ( ex ) ; } } } ) ; } } ) ; handler . startNotify ( ) ; } catch ( Exception ex ) { Bus . notify ( new com . intellij . notification . Notification ( groupId , ( ( "Formatting<seq2seq4repair_space>" + ( psiFile . getName ( ) ) ) + "<seq2seq4repair_space>with<seq2seq4repair_space>DFormat<seq2seq4repair_space>failed" ) , ExceptionUtil . getUserStackTrace ( ex , DFormatAction . LOG ) , NotificationType . ERROR ) , project ) ; DFormatAction . LOG . error ( ex ) ; } } }

Fix:
Bus . notify ( new com . intellij . notification . Notification ( groupId , DFormatAction . NOTIFICATION_TITLE , ( "DFormat<seq2seq4repair_space>executable<seq2seq4repair_space>path<seq2seq4repair_space>is<seq2seq4repair_space>empty" + "<br//><a<seq2seq4repair_space>href='configureDLanguageTools'>Configure<//a>" ) , NotificationType . WARNING , new net . masterthought . dlanguage . utils . DToolsNotificationListener ( project ) ) , project ) ;