ValidationResult (@NotNull final CommandLinePart commandLinePart) { final CommandLineFile commandLineFile = commandLinePart.getCommandLineFile(); if (commandLineFile == null) { return null; } final ValidationResult validationResult = commandLineFile.getValidationResult(); if (validationResult == null) { return null; } return validationResult; }