use iterable to avoid creating all commands

GitOrigin-RevId: 3c2aa4678540f00af9384497ee455d8046c50b35
This commit is contained in:
develar
2019-05-03 01:45:09 +03:00
committed by intellij-monorepo-bot
parent 1290e08ceb
commit 024e6ae021
@@ -28,7 +28,7 @@ public abstract class JBProtocolCommand {
@Nullable
public static JBProtocolCommand findCommand(@Nullable String commandName) {
if (commandName != null) {
for (JBProtocolCommand command : EP_NAME.getExtensionList()) {
for (JBProtocolCommand command : EP_NAME.getIterable()) {
if (command.getCommandName().equals(commandName)) {
return command;
}