IDE-1067

    Add getValidatedDebugPort method to find a validated port for local server freemarker debugger.