public void excludePath(@NotNull String importPath) { setExcludedPackages(ArrayUtil.append(myExcludedPackages, importPath)); } }
/** * Appends <code>element</code> to the <code>src</code> array. As you can * imagine the appended element will be the last one in the returned result. * * @param src array to which the <code>element</code> should be appended. * @param element object to be appended to the end of <code>src</code> array. * @return new array */ @NotNull @Contract(pure=true) public static <T> T[] append(@NotNull final T[] src, @Nullable final T element) { return append(src, element, (Class<T>)src.getClass().getComponentType()); }
for (String path : pluginClassPaths) { if (ArrayUtil.indexOf(arguments.getPluginClasspaths(), path) < 0) { arguments.setPluginClasspaths(ArrayUtil.append(arguments.getPluginClasspaths(), path));