@Override
    public boolean isWorkingInThisEnvironment(String forFile) {
        return !GraphicsEnvironment.isHeadless()
                && GenericDiffReporter.isFileExtensionValid(forFile, GenericDiffReporter.IMAGE_FILE_EXTENSIONS);
    }
@ Override public boolean isWorkingInThisEnvironment ( String forFile ) { return ! GraphicsEnvironment . isHeadless ( ) && GenericDiffReporter . isFileExtensionValid ( forFile , GenericDiffReporter . IMAGE_FILE_EXTENSIONS ) ; }
We assume any environment that is not headless will have a web browser to display the image in a web page.