ProjectGeneratorPeer<Object> () { return new ProjectGeneratorPeer<>() { @NotNull @Override public JComponent getComponent() { return new JPanel(); } @Override public void buildUI(@NotNull SettingsStep settingsStep) { settingsStep.addSettingsComponent(getComponent()); } @NotNull @Override public Object getSettings() { return new Object(); } @Nullable @Override public ValidationInfo validate() { return null; } @Override public boolean isBackgroundJobRunning() { return false; } @Override public void addSettingsStateListener(@NotNull SettingsStateListener listener) { } }; }