void (@NotNull final CommandLineCommand o) { super.visitCommand(o); final CommandLineFile file = getFile(o); if (file == null) { return; } final List<Command> commands = file.getCommands(); if (commands == null) { return; } for (final Command command : commands) { if (o.getText().equals(command.getName())) { return; } } myHolder.registerProblem(o, PyBundle.message("commandLine.inspection.badCommand")); }