boolean (@NotNull CredentialsType<?> credentialsType, @NotNull Class<?> languageContributionMarkerClass) { // TODO add language contributors for Python and Node JS for (CredentialsType<?> type : CredentialsManager.getInstance().getAllTypes()) { if (credentialsType.equals(type)) { CredentialsEditorProvider editorProvider = ObjectUtils.tryCast(type, CredentialsEditorProvider.class); if (editorProvider != null) { List<CredentialsLanguageContribution> contributions = getContributions(languageContributionMarkerClass); if (!contributions.isEmpty()) { for (CredentialsLanguageContribution contribution : contributions) { if (contribution.getType() == type && editorProvider.isAvailable(contribution)) { return true; } } } } } } return false; }