void (@NotNull State state, @NotNull RunProfile profile) { RunConfiguration runConfiguration = ObjectUtils.tryCast(profile, RunConfiguration.class); if (runConfiguration != null) { RunConfigurationDescriptor descriptor = new RunConfigurationDescriptor(); descriptor.myType = runConfiguration.getType().getId(); descriptor.myName = runConfiguration.getName(); state.myEnabledRunConfigurations.add(descriptor); } }