private void loadAdditionalIndentOptions() { synchronized (myAdditionalIndentOptions) { myLoadedAdditionalIndentOptions = true; final FileTypeIndentOptionsProvider[] providers = Extensions.getExtensions(FileTypeIndentOptionsProvider.EP_NAME); for (final FileTypeIndentOptionsProvider provider : providers) { if (!myAdditionalIndentOptions.containsKey(provider.getFileType())) { registerAdditionalIndentOptions( provider.getFileType(), getFileTypeIndentOptions(provider)); } } } }
private static IndentOptions getDefaultIndentOptions(FileType fileType) { final FileTypeIndentOptionsProvider[] providers = Extensions.getExtensions(FileTypeIndentOptionsProvider.EP_NAME); for (final FileTypeIndentOptionsProvider provider : providers) { if (provider.getFileType().equals(fileType)) { return getFileTypeIndentOptions(provider); } } return new IndentOptions(); }