private void check(@Nullable String nodeInterpreterPath, @Nullable String karmaPackagePath) throws RuntimeConfigurationException {
if (nodeInterpreterPath == null || nodeInterpreterPath.trim().isEmpty()) {
throw new RuntimeConfigurationError("Please specify Node.js interpreter path");
}
File nodeInterpreter = new File(nodeInterpreterPath);
if (!nodeInterpreter.isFile() || !nodeInterpreter.canExecute() || !nodeInterpreter.isAbsolute()) {
throw new RuntimeConfigurationError("Please specify Node.js interpreter path correctly");
}
if (karmaPackagePath == null || karmaPackagePath.trim().isEmpty()) {
throw new RuntimeConfigurationError("Please specify Karma package path");