ApkFacetConfiguration implements FacetConfiguration { public void removeIssues(@NotNull String category) { List<SetupIssue> forRemoval = new ArrayList<>(); for (SetupIssue issue : SETUP_ISSUES) { if (category.equals(issue.category)) { forRemoval.add(issue); } } if (!forRemoval.isEmpty()) { SETUP_ISSUES.removeAll(forRemoval); } }  @Override FacetEditorTab[] createEditorTabs(FacetEditorContext editorContext, FacetValidatorsManager validatorsManager); @NotNull Collection<String> getDebugSymbolFolderPaths(@NotNull List<Abi> abis); @NotNull Map<File, File> getExplicitModuleSymbolMap(@NotNull final Abi abi); @NotNull Map<String, String> getSymbolFolderPathMappings(); @Override void readExternal(@NotNull Element element); @Override void writeExternal(@NotNull Element element); @NotNull List<NativeLibrary> getLibrariesWithoutDebugSymbols(); void removeIssues(@NotNull String category); @NonNls public String APK_PATH; @NonNls public String APP_PACKAGE; @NotNull public List<SetupIssue> SETUP_ISSUES; @NotNull public List<NativeLibrary> NATIVE_LIBRARIES; @NotNull public Set<String> JAVA_SOURCE_FOLDER_PATHS; }
@Test public void removeIssues() { SetupIssue issue1 = new SetupIssue(); issue1.category = "category1"; SetupIssue issue2 = new SetupIssue(); issue2.category = "category1"; SetupIssue issue3 = new SetupIssue(); issue3.category = "category2"; myConfiguration.SETUP_ISSUES.add(issue1); myConfiguration.SETUP_ISSUES.add(issue2); myConfiguration.SETUP_ISSUES.add(issue3); myConfiguration.removeIssues("category1"); assertThat(myConfiguration.SETUP_ISSUES).containsExactly(issue3); }