CommandLinePatcher (RunProfileState state, RunProfile profile) { CommandLinePatcher runConfigPatcher = null; if (state instanceof PythonCommandLineState && profile instanceof AbstractPythonRunConfiguration) { runConfigPatcher = (AbstractPythonRunConfiguration)profile; } return runConfigPatcher; }