public boolean check(RemoteSdkAdditionalData data) {
    final Ref<Boolean> result = Ref.create(false);
    data.switchOnConnectionType(new LanguageCaseCollector<PyCredentialsContribution>() {

      @Override
      protected void processLanguageContribution(PyCredentialsContribution languageContribution, Object credentials) {
        result.set(checkLanguageContribution(languageContribution));
      }
    }.collectCases(PyCredentialsContribution.class));
    return result.get();
  }
public boolean check(RemoteSdkAdditionalData data)