private IErlangConsole getConsole(final @NonNull IProject aproject) {
final IBackendManager backendManager = BackendCore.getBackendManager();
final Set<IBackend> executionBackends = backendManager
.getExecutionBackends(aproject);
final ErlConsoleManager erlConsoleManager = ErlideUIPlugin.getDefault()
.getErlConsoleManager();
IErlangConsole result = null;
for (final IBackend backend : executionBackends) {
result = erlConsoleManager.getConsole(backend);
if (result != null) {
break;
}
}
return result;