Condition<CharSequence> (@Nullable String mask) { try { return FindInProjectUtil.createFileMaskCondition(mask); } catch (PatternSyntaxException e) { LOG.info("Error while processing file mask: ", e); return Conditions.alwaysTrue(); } }