void (@NotNull ParamsGroup paramsGroup, int paramIndex, @Nullable File workDirectory) { String param = paramsGroup.getParameters().get(paramIndex); if (!new File(param).isAbsolute() && workDirectory != null) { File paramFile = new File(workDirectory, param); if (paramFile.exists()) { paramsGroup.getParametersList().set(paramIndex, paramFile.getPath()); } } }