void (@Nullable String text, boolean regexp, boolean caseSensitive, @NotNull List<? super String> filterParameters) { if (text != null) { filterParameters.add(prepareParameter("grep", text)); } filterParameters.add(regexp ? "--extended-regexp" : "--fixed-strings"); if (!caseSensitive) { filterParameters.add("--regexp-ignore-case"); // affects case sensitivity of any filter (except file filter) } }