boolean (@NotNull final String executorId, @NotNull final RunProfile profile) { if (!DefaultDebugExecutor.EXECUTOR_ID.equals(executorId)) { // If not debug at all return false; } /* * Any python configuration is debuggable unless it explicitly declares itself as DebugAwareConfiguration and denies it * with canRunUnderDebug == false */ if (profile instanceof WrappingRunConfiguration) { // If configuration is wrapper -- unwrap it and check return isDebuggable(((WrappingRunConfiguration<?>)profile).getPeer()); } return isDebuggable(profile); }