FileType (@NotNull FileType provided) { for (final FileType existing : myAdditionalIndentOptions.keySet()) { if (Comparing.strEqual(existing.getDefaultExtension(), provided.getDefaultExtension())) { return existing; } } return null; }