PlainFolderIncludeResolver extends IncludeResolver { @Override @Nullable public SimpleIncludeValue resolve(@NotNull File includeFolder) { String displayName = includeFolder.getName(); return new SimpleIncludeValue(PackageType.IncludeFolder, PackageType.IncludeFolder.myDescription, displayName, "/", includeFolder, includeFolder); }  @Override @Nullable SimpleIncludeValue resolve(@NotNull File includeFolder);  }
@Test public void test() { PlainFolderIncludeResolver resolver = new PlainFolderIncludeResolver(); SimpleIncludeValue result = resolver.resolve(new File("/path/to/folder")); assertThat(result).isNotNull(); assertThat(result.getSimplePackageName()).isEqualTo("folder"); assertThat(result.getRelativeIncludeSubFolder()).isEqualTo("/"); assertThat(result.getIncludeFolder()).isEqualTo(new File("/path/to/folder")); }